PlainNotificationToken class
Utility class to get token to send push notification for Flutter.
This plugin is aiming to compatible with firebase_messaging API.
Constructors
- PlainNotificationToken()
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onIosSettingsRegistered
→ Stream<
IosNotificationSettings> -
Stream that fires when the user changes their notification settings.
no setter
-
onTokenRefresh
→ Stream<
String> -
Fires when a new the APNs (in iOS)/FCM (in Android) token is generated.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getToken(
) → Future< String?> - Returns the APNs (in iOS)/FCM (in Android) token. If the token is not ready, it returns null on iOS.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestPermission(
[IosNotificationSettings settings = const IosNotificationSettings()]) → void - On iOS, prompts the user for notification permissions the first time it is called.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited