Closed
Description
Description
PushNotificationIOS.checkPermissions() returns "alert: false"
even when iOS notifications alerts are partially enabled
There are three options under notifications->alerts in iOS settings
- "Lock Screen"
- "Notification Center"
- "Banners"
.checkPermissions() returns "alert: true" or "alert: false" only based on the status of 3.
- and 2. are ignored and returns "alert: false" no matter what if 3. is unchecked
React Native version: 0.59.1
Steps To Reproduce
- call PushNotificationIOS.checkPermissions() in your code
- go to iOS settings and uncheck "Alert" -> "Banners" but leave "Lock Screen" and/or "Notification Center" checked
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