SILFCM class
Constructors
- SILFCM({FirebaseMessaging? firebaseMessagingObj, FlutterLocalNotificationsPlugin? localNotifications})
-
factory
Properties
- androidChannel ↔ AndroidNotificationChannel?
-
getter/setter pair
-
didReceiveLocalNotificationSubject
→ BehaviorSubject<
ReminderNotification> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectNotificationSubject
→ BehaviorSubject<
String> -
final
Methods
-
configure(
{required BuildContext context, OnMessageCallback? callback}) → Future< SILFCM> -
configure is responsible for correctly setting up local notifications ( and asking for permission if needed)
and wiring-up firebase messaging
onMessage
callback to show fcm messages -
getDeviceToken(
) → Future< String?> - getDeviceToken fetches unique device token
-
initializeIOSInitializationSettings(
) → IOSInitializationSettings -
initializeLocalNotifications(
) → Future< void> - initializeLocalNotifications bootstraps local notifications to the application
-
initializeMacOSInitializationSettings(
) → MacOSInitializationSettings -
listenOnDeviceTokenChanges(
dynamic graphQLClient) → Future< void> - listenOnDeviceTokenChanges when initiate a callback once the device token changes
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onDeviceTokenRefresh(
) → Stream< String> -
onMessageSetup<
T extends FirebaseMessaging> ({required BuildContext context, OnMessageCallback? callback}) → Future< void> -
onNotificationSelected(
String? payload) → Future< bool> -
requestIOSFCMMessagingPermission(
) → Future< NotificationSettings> - requestIOSFCMMessagingPermission used to request messaging permissions for ios platform.
-
requestMacOSFCMMessagingPermission(
) → Future< NotificationSettings> - requestMacOSFCMMessagingPermission used to request messaging permissions for macOS platform.
-
resetToken(
) → Future< void> - resetToken deletes a device token
-
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
- localNotificationsPlugin ↔ FlutterLocalNotificationsPlugin
-
create an instance of
FlutterLocalNotificationsPlugin
getter/setter pair