-
Notifications
You must be signed in to change notification settings - Fork 24.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PushNotificationIOS.checkPermissions() does not return partial permissions for "alert" #25980
Comments
After some more research i did the following modifications to RTCPushNotificationManager.m in the PushNotificationIOS libray in order to also get the authorization status. Not sure if this is the right way to do it though. modified this
with this
|
Please create a PR to with the fix |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Description
PushNotificationIOS.checkPermissions() returns "alert: false"
even when iOS notifications alerts are partially enabled
There are three options under notifications->alerts in iOS settings
.checkPermissions() returns "alert: true" or "alert: false" only based on the status of 3.
React Native version: 0.59.1
Steps To Reproduce
Expected Behavior
PushNotificationIOS.checkPermissions()
v1.
return more infos, for example an object like
{
alertLockScreen: bool,
alertNotificationCenter: bool,
alertBanners: bool,
sound: bool,
badge: bool,
}
v2.
just return one bool value which is true if any of the above are true
The text was updated successfully, but these errors were encountered: