Skip to content

PushNotificationIOS.checkPermissions() does not return partial permissions for "alert" #25980

Closed
@sorinns

Description

@sorinns

Description

PushNotificationIOS.checkPermissions() returns "alert: false"
even when iOS notifications alerts are partially enabled

There are three options under notifications->alerts in iOS settings

  1. "Lock Screen"
  2. "Notification Center"
  3. "Banners"

.checkPermissions() returns "alert: true" or "alert: false" only based on the status of 3.

  1. and 2. are ignored and returns "alert: false" no matter what if 3. is unchecked

React Native version: 0.59.1

Steps To Reproduce

  1. call PushNotificationIOS.checkPermissions() in your code
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions