NotificationPayload

open fun NotificationPayload(remoteMessage: Map<String, String>)

Create notification payload from the received map.

Example:


     public class FCMListenerService extends FirebaseMessagingService {
        @Override
        public void onMessageReceived(RemoteMessage remoteMessage) {
            NotificationPayload payload = new NotificationPayload(remoteMessage.getData());
            conversationsClient.handleNotification(payload);
            // Do the processing here
        }
     }

Parameters

remoteMessage

Android FCM RemoteMessage with push notification data as received from the system.