Push class

Enables a device to be registered and deregistered from receiving push notifications.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

activate() Future<void>
Activates the device for push notifications with FCM or APNS, obtaining a unique identifier from them.
deactivate() Future<void>
Deactivates the device from receiving push notifications with Ably and FCM or APNS.
getNotificationSettings() Future<UNNotificationSettings>
Gets the iOS notification settings (UNNotificationSettings) for the application.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission({bool alert = true, bool announcement = true, bool badge = true, bool carPlay = true, bool criticalAlert = false, bool providesAppNotificationSettings = false, bool provisional = false, bool sound = true}) Future<bool>
Request permission from the user to show them notifications. This is required to show user notifications. Otherwise, notifications may silently get received by the application.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

activationEvents PushActivationEvents
A static object that can be used to access activation events related to push, such as device activation, deactivation and notification permissions.
getter/setter pair
notificationEvents PushNotificationEvents
A static object that can be used to access message events related to push.
getter/setter pair