FirebasePushConnector class

Inheritance

Constructors

FirebasePushConnector()

Properties

didInitialize bool
getter/setter pair
firebase → FirebaseMessaging
latefinal
hashCode int
The hash code for this object.
no setterinherited
isDisabledByUser ValueNotifier<bool?>
User declined to allow for push messages. initially nil
final
providerType String
Either GCM or APNS
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
token ValueNotifier<String?>
Value of registered token initially nil
final

Methods

configure({MessageHandler? onMessage, MessageHandler? onLaunch, MessageHandler? onResume, MessageHandler? onBackgroundMessage, FirebaseOptions? options}) Future<void>
Configures callbacks for supported message situations. It should be called as soon as app is launch or you won't get the onLaunch callback
override
dispose() → void
Deletes used resources.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestNotificationPermissions() → void
Prompts (if need) the user to enable push notifications. After user makes their choice, isDisabledByUser will become either true or false. If accepted, token.value will be set
override
toString() String
A string representation of this object.
inherited
unregister() Future<void>
Unregisters from the service and clears the token.
override

Operators

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