PushManager
This class is the primary interface for customizing the display and behavior of incoming push notifications.
Properties
Sets a predicate that determines if a notification should be presented in the foreground or not.
Whether the app is currently inside of "Quiet Time".
Whether the app is capable of receiving push (true
if a push token is present).
Controls whether "Quiet Time" is enabled.
Whether sound is enabled.
Whether vibration is enabled.
The send metadata of the last received push, or null
if none exists.
Sets the notification provider used to build notifications from a push message
The Quiet Time interval set by the user.
Whether user-facing push notifications are enabled.
Inherited properties
Functions
Register a notification action group under the given name.
Adds notification action button groups from an xml file. Example entry:
Adds an Airship push notification status listener.
Adds a push listener.
Adds a push token listener.
Checks if notifications are enabled for the app and in the push manager.
Enables user notifications on Airship and tries to prompt for the notification permission.
Returns the notification action group that is registered under the given name.
Check to see if we've seen this ID before. If we have, return false. If not, add the ID to our history and return true.
Performs push registration.
Removes the notification button group under the given name.
Removes an Airship push notification status listener.
Removes a push listener.
Removes a push token listener.
Sets the Quiet Time interval.
Inherited functions
Enables user notifications on Airship and tries to prompt for the notification permission.