Readonly
androidAndroid only push methods.
Readonly
iosiOS only push methods.
Clears a specific notification.
On Android, you can use this method to clear
notifications outside of Airship, The identifier is in
the format of
The identifier.
Optional
success: (() => void)Success callback.
Optional
error: ((err: string) => void)Error callback.
Clears all notifications for the app.
Optional
success: (() => void)Success callback.
Optional
error: ((err: string) => void)Error callback.
Enables user notifications.
Success callback.
Optional
error: ((err: string) => void)Error callback.
Gets the list of active notifications.
On Android, this list only includes notifications sent through Airship.
Success callback.
Optional
error: ((err: string) => void)Error callback.
Gets the notification status.
Success callback.
Optional
error: ((err: string) => void)Error callback.
Gets the push token if generated.
Use the event listener onPushTokenReceived
to be notified when its available.
Success callback.
Optional
error: ((err: string) => void)Error callback.
Checks if user notifications are enabled or not on Airship.
Success callback.
Optional
error: ((err: string) => void)Error callback.
Notification response listener.
A cancellable that can be used to cancel the listener.
The callback.
Event when the notification status has changed.
A cancellable that can be used to cancel the listener.
The callback.
Push received listener.
A cancellable that can be used to cancel the listener.
The callback.
Push token listener.
A cancellable that can be used to cancel the listener.
The callback.
Enables/disables notifications on Airship.
When enabled, it will cause the user to be prompted for
the permission on platforms that support it.
To get the result of the prompt, use enableUserNotifications
.
true to enable, false to disable
Optional
success: (() => void)Success callback.
Optional
error: ((err: string) => void)Error callback.
Generated using TypeDoc
Airship Push.