GetState() | (none) | PushState | Returns the current notification state. |
Refresh() | (none) | void | Reads the permission state again. |
RegisterPushToken(token) | string | void | Sends the FCM token to the backend. |
RequestPushPermission() | (none) | void | Shows the permission dialog of the operating system. |
OpenNotificationSettings() | (none) | void | Opens the notification settings of the operating system. |
GetPermission() | (none) | string | Returns "Granted", "DeniedAlways", or "NotGranted". |
AddListener(listener) | Action | void | Calls the listener on each change of the state. |
RemoveListener(listener) | Action | void | Deletes the listener. |