Class FcmService


  • public class FcmService
    extends FirebaseMessagingService
    Firebase Cloud Messaging Service

    Service used to receive the push notification message from FCM.

    This service is automatically registered when using the AAR library.

    • Constructor Summary

      Constructors 
      Constructor Description
      FcmService()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onMessageReceived​(RemoteMessage message)  
      void onNewToken​(java.lang.String token)  
      static void triggerSmoochNotification​(java.util.Map<java.lang.String,​java.lang.String> data, android.content.Context context)
      Helper function that handles a push notification received from Smooch.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FcmService

        public FcmService()
    • Method Detail

      • onNewToken

        public void onNewToken​(java.lang.String token)
      • onMessageReceived

        public void onMessageReceived​(RemoteMessage message)
      • triggerSmoochNotification

        public static void triggerSmoochNotification​(java.util.Map<java.lang.String,​java.lang.String> data,
                                                     android.content.Context context)
        Helper function that handles a push notification received from Smooch.
        Parameters:
        data - the data received in a RemoteMessage
        context - the context where the message was received