Package 

Class CTFcmMessageHandler

    • Method Summary

      Modifier and Type Method Description
      boolean createNotification(Context context, RemoteMessage message) Creates notification from Firebase Remote message Use this method if you have custom implementation of messaging service and wants to create push-templatenotification/non push-template notification using CleverTapNote: Starting from v5.1.0, this method runs on the caller's thread.
      boolean onNewToken(Context applicationContext, String token) Processes new token from Firebase
      void processPushAmp(Context context, @NonNull() RemoteMessage message) Processes notification message for Pull Notifications Use this method if you are rendering notification by your own and wants to support your custom renderednotification for Pull Notifications
      • Methods inherited from class com.clevertap.android.sdk.pushnotification.fcm.IFcmMessageHandler

        createNotification, onNewToken
      • Methods inherited from class com.clevertap.android.sdk.interfaces.IPushAmpHandler

        processPushAmp
      • Methods inherited from class java.lang.Object

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

      • CTFcmMessageHandler

        CTFcmMessageHandler()
    • Method Detail

      • createNotification

         boolean createNotification(Context context, RemoteMessage message)

        Creates notification from Firebase Remote message Use this method if you have custom implementation of messaging service and wants to create push-templatenotification/non push-template notification using CleverTap

        Note: Starting from v5.1.0, this method runs on the caller's thread. Make sure to call itin onMessageReceive() of messaging service.

      • processPushAmp

         void processPushAmp(Context context, @NonNull() RemoteMessage message)

        Processes notification message for Pull Notifications Use this method if you are rendering notification by your own and wants to support your custom renderednotification for Pull Notifications