I started using oneSignal by one of tutorials. And when typing let status: OSPermissionSubscriptionState = OneSignal.getPermissionSubscriptionState()
i'm getting error Cannot find type 'OSPermissionSubscriptionState'
. I don't know why it's happening because i founded this code in the documentation of oneSignal in User Status methods.
Use Onegnal.getDeviceState()
instead of getPermissionSubscriptionState
. You can follow this documentation.