PushNotificationService class
Constructors
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- firebaseMessaging ↔ FirebaseMessaging
-
getter/setter pair
- flutterLocalNotificationsPlugin → FlutterLocalNotificationsPlugin
-
final
- token ↔ String?
-
getter/setter pair
Static Methods
-
initializeNotificationService(
{void onPushBackgroundNotificationOpened(RemoteMessage remoteMessage)?, void onLocalForegroundNotificationOpened(NotificationResponse notificationResponse)?, void onLocalBackgroundNotificationOpened(NotificationResponse notificationResponse)?}) → Future< String?> -
requestPermission(
) → Future< void> -
showForegroundNotification(
{required RemoteMessage remoteMessage, bool playSound = true, bool showBadge = true}) → void