-
- All Implemented Interfaces:
-
com.clevertap.android.sdk.interfaces.IPushAmpHandler,com.clevertap.android.sdk.pushnotification.fcm.IFcmMessageHandler
public class CTFcmMessageHandler implements IFcmMessageHandler, IPushAmpHandler<RemoteMessage>
implementation of IFcmMessageHandler and IPushAmpHandler for Firebase notification message
-
-
Constructor Summary
Constructors Constructor Description CTFcmMessageHandler()
-
Method Summary
Modifier and Type Method Description booleancreateNotification(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. booleanonNewToken(Context applicationContext, String token)Processes new token from Firebase voidprocessPushAmp(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
-
-
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.
-
onNewToken
boolean onNewToken(Context applicationContext, String token)
Processes new token from Firebase
-
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
-
-
-
-