id | title | sidebar_label |
---|---|---|
ios-api |
iOS Specific Commands |
iOS specific |
Requests notification permissions from iOS, prompting the user's dialog box.
Notifications.ios.requestPermissions();
See what push permissions are currently enabled.
Notifications.ios.checkPermissions();
Unregister for all remote notifications received via Apple Push Notification service.
You should call this method in rare circumstances only, such as when a new version of the app removes support for all types of remote notifications. Users can temporarily prevent apps from receiving remote notifications through the Notifications section of the Settings app. Apps unregistered through this method can always re-register.
Notifications.ios.abandonPermissions();
Register for PushKit notifications
Notifications.ios.registerPushKit();
Cancels all scheduled localNotifications
Notifications.ios.cancelAllLocalNotifications();
Provides you with a list of the app’s notifications that are still displayed in Notification Center
Notifications.ios.getDeliveredNotifications();
Removes the specified notifications from Notification Center
Notifications.ios.removeDeliveredNotifications(identifiers);
Gets the badge count number from the aps object
Notifications.ios.getBadgeCount();
Sets the badge number for the app icon on the home screen
Notifications.ios.setBadgeCount(1);