Package com.avaya.core
Class FcmService
- java.lang.Object
-
- FirebaseMessagingService
-
- com.avaya.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
triggerAvMessagingSdkNotification(java.util.Map<java.lang.String,java.lang.String> data, android.content.Context context)
Helper function that handles a push notification received from AvMessagingSdk.
-
-
-
Method Detail
-
onNewToken
public void onNewToken(java.lang.String token)
-
onMessageReceived
public void onMessageReceived(RemoteMessage message)
-
triggerAvMessagingSdkNotification
public static void triggerAvMessagingSdkNotification(java.util.Map<java.lang.String,java.lang.String> data, android.content.Context context)
Helper function that handles a push notification received from AvMessagingSdk.- Parameters:
data
- the data received in a RemoteMessagecontext
- the context where the message was received
-
-