PushConnector class abstract
Interface for either APNS or Firebase connector, implementing common features.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
isDisabledByUser
→ ValueNotifier<
bool?> -
User declined to allow for push messages.
initially nil
no setter
- providerType → String
-
Either GCM or APNS
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
token
→ ValueNotifier<
String?> -
Value of registered token
initially nil
no setter
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 -
dispose(
) → void - Deletes used resources.
-
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
-
toString(
) → String -
A string representation of this object.
inherited
-
unregister(
) → Future< void> - Unregisters from the service and clears the token.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited