public class FcmService
extends FirebaseMessagingService
Service used to receive the push notification message from FCM.
This service is automatically registered when using the AAR library.
Constructor and Description |
---|
FcmService() |
Modifier and Type | Method and Description |
---|---|
void |
onMessageReceived(RemoteMessage message) |
void |
onNewToken(java.lang.String token) |
static void |
triggerBrandMessengerNotification(java.util.Map<java.lang.String,java.lang.String> data,
android.content.Context context)
Helper function that handles a push notification received from BrandMessenger.
|
public void onNewToken(java.lang.String token)
public void onMessageReceived(RemoteMessage message)
public static void triggerBrandMessengerNotification(java.util.Map<java.lang.String,java.lang.String> data, android.content.Context context)
data
- the data received in a RemoteMessagecontext
- the context where the message was received