PushManager class
The interface of the Push API provides a way to receive
notifications from third-party servers as well as request URLs
for push notifications.
This interface is accessed via the
ServiceWorkerRegistration.pushManager
property.
- Available extensions
- Annotations
-
- @experimental
- @JS()
- @staticInterop
Constructors
- PushManager()
-
factory
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
-
getSubscription(
) → Future< PushSubscription> -
Available on PushManager, provided by the PropsPushManager extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
permissionState(
[PushSubscriptionOptionsInit? options]) → Future< PermissionState> -
Available on PushManager, provided by the PropsPushManager extension
-
subscribe(
[PushSubscriptionOptionsInit? options]) → Future< PushSubscription> -
Available on PushManager, provided by the PropsPushManager extension
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited