Request notification permissions

Requests permission from the user for the app to receive and display notifications.

Shows a native dialogue to the user, asking them to give the current app permissions to receive notifications (both local and remote).

If requesting the permissions was successful and they were granted, the first output is triggered.

If requesting the permissions was unsuccessful or they were not granted by the user, the second output is triggered.

Input arguments

No input arguments.

Output arguments

Number of outputs: 2

Label

Key

Type

Description

Permissions granted?

granted

Boolean

If true, the user successfully granted permissions to the app to receive notifications, or the permissions were granted already.

Events

No events.

Errors

No errors.