Push Notifications

Direct Push Notifications

Notifications will be triggered and delivered to your users directly by Amity's servers. There's nothing that the Flutter client has to do in order to display the notification to your users. Amity's servers will prepare for you a notification that can be directly displayed to the user as and when it's received.

In previous versions of FlutterFire, in order to add Firebase to your projects manual platform specific steps were required, such as downloading a google-services.json file for Android, downloading a GoogleService-Info.plist file for iOS or editing your index.html file for web.

FlutterFire now supports initialization from Dart using the FlutterFire CLI.

To get Flutter notifications in iOS and Android, follow iOS and Android installation guides.

Client Registration

The client must register to start getting push notifications.

To do so, a device token needs to be set through registerDeviceNotification(:_)

Client Unregistration

Unlike the registration, unregistering for push does not require the AmityCoreClient instance to be associated with any user, therefore you can unregister the device from receiving push notifications as soon as the AmityCoreClient has been initial.

Last updated