Package io.smooch.core
Class FcmService
- java.lang.Object
-
- FirebaseMessagingService
-
- io.smooch.core.FcmService
-
public class FcmService extends FirebaseMessagingService
Firebase Cloud Messaging ServiceService 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.
-
-
-
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 RemoteMessagecontext
- the context where the message was received
-
-