PushNotificationInterface

This interface represents the App's push notification implementation.

The simplest way to satisfy this interface is to add your google-services.json to the root of your project and implement onPushMessageReceived. Other, optional, functions are available of for more complex implementations.

Functions

Link copied to clipboard
abstract fun onPushMessageReceived(data: Map<String?, String?>?)

The implementation of this method would receive a notification and handle it in some way, such as showing a notification to the user.

Link copied to clipboard
abstract fun supplyFirebaseMessaging(): FirebaseMessaging?

This method is optional, you may simply return null.