PushNotificationIOS.requestPermissions()

static requestPermissions(permissions?)

Requests notification permissions from iOS, prompting the user's dialog box. By default, it will request all notification permissions, but a subset of these can be requested by passing a map of requested permissions. The following permissions are supported:

  • alert
  • badge
  • sound

If a map is provided to the method, only the permissions with truthy values will be requested.

This method returns a promise that will resolve when the user accepts, rejects, or if the permissions were previously rejected. The promise resolves to the current state of the permission.

doc_React_Native
2016-06-23 04:25:02
Comments
Leave a Comment

Please login to continue.