AmplifyPushNotifications class abstract

Implementation of the Amplify Push Notifications category.

  • Concrete implementation of the Plugin Interface
  • Communicates with native module via PushNotificationsHostApi

Constructors

AmplifyPushNotifications.new({required ServiceProviderClient serviceProviderClient, required Future<void> backgroundProcessor(), @visibleForTesting DependencyManager? dependencyManager})
Implementation of the Amplify Push Notifications category.

Properties

hashCode int
The hash code for this object.
no setterinherited
launchNotification → PushNotificationMessage?
no setter
onNotificationOpened Stream<PushNotificationMessage>
no setter
onNotificationReceivedInForeground Stream<PushNotificationMessage>
no setter
onTokenReceived Stream<String>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

configure({AmplifyConfig? config, required AmplifyAuthProviderRepository authProviderRepo}) Future<void>
Configures the plugin using the registered config.
getBadgeCount() Future<int>
getPermissionStatus() Future<PushNotificationPermissionStatus>
identifyUser({required String userId, UserProfile? userProfile}) Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onNotificationReceivedInBackground(OnRemoteMessageCallback callback) → void
requestPermissions({bool alert = true, bool badge = true, bool sound = true}) Future<bool>
reset() Future<void>
Resets the plugin by removing all traces of it from the device.
setBadgeCount(int badgeCount) → void
toString() String
A string representation of this object.
inherited

Operators

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