You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are trying to monitor if the user has either not decided on notification permission, granted, or denied push notifications. This is possible on iOS through the notificationPermissionStatus field. But on android this field is not present and we are enable to check their permission status outside of hasNotifcationPermision: false(default)/true.
Steps to reproduce?
1. Install 4.5.1 react-native-onesignal
2. Fetch device state using `OneSignal.getDeviceState()`3. Check on iOS `notificationPermissionStatus` field is returned
4. Check on android `notificationPermissionStatus` field is missing
What did you expect to happen?
I am expecting notificationPermissionStatus field to be returned on iOS and Android
I will bring this up to the team regarding adding notificationPermissionStatus to Android. We will be moving away from the player version of our SDKs (<=4.x.x) in favor of our new major release (5.x.x).
This new version does not have getDeviceState, it does offer a new method for getting notification permission status. I'd encourage you to look at the migration guide and consider upgrading to our latest major release.
What happened?
We are trying to monitor if the user has either not decided on notification permission, granted, or denied push notifications. This is possible on iOS through the
notificationPermissionStatus
field. But on android this field is not present and we are enable to check their permission status outside ofhasNotifcationPermision
:false
(default)/true
.Steps to reproduce?
What did you expect to happen?
I am expecting
notificationPermissionStatus
field to be returned on iOS and AndroidReact Native OneSignal SDK version
Release 4.5.1
Which platform(s) are affected?
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: