-
public class CustomerIOFirebaseMessagingService.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static CustomerIOFirebaseMessagingService.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final BooleanonMessageReceived(Context context, RemoteMessage remoteMessage, Boolean handleNotificationTrigger)Handles receiving an incoming push notification. final BooleanonMessageReceived(Context context, RemoteMessage remoteMessage)Handles receiving an incoming push notification. final BooleanonMessageReceived(RemoteMessage remoteMessage, Boolean handleNotificationTrigger)Handles receiving an incoming push notification. final BooleanonMessageReceived(RemoteMessage remoteMessage)Handles receiving an incoming push notification. final UnitonNewToken(String token)Handles new or refreshed token Call this from FirebaseMessagingService to register the new device token final UnitonNewToken(Context context, String token)Handles new or refreshed token Call this from FirebaseMessagingService to register the new device token -
-
Method Detail
-
onMessageReceived
@JvmOverloads() final Boolean onMessageReceived(Context context, RemoteMessage remoteMessage, Boolean handleNotificationTrigger)
Handles receiving an incoming push notification.
Call this from a custom FirebaseMessagingService to pass push messages to CustomerIO SDK for tracking and rendering
- Parameters:
context- reference to application contextremoteMessage- Remote message received from Firebase in FirebaseMessagingService.onMessageReceivedhandleNotificationTrigger- indicating if the local notification should be triggered
-
onMessageReceived
@JvmOverloads() final Boolean onMessageReceived(Context context, RemoteMessage remoteMessage)
Handles receiving an incoming push notification.
Call this from a custom FirebaseMessagingService to pass push messages to CustomerIO SDK for tracking and rendering
- Parameters:
context- reference to application contextremoteMessage- Remote message received from Firebase in FirebaseMessagingService.onMessageReceived
-
onMessageReceived
@Deprecated(message = This method is deprecated and will be removed in future releases. Use the one with context, replaceWith = @ReplaceWith(imports = {}, expression = onMessageReceived(context = applicationContext, remoteMessage = remoteMessage, handleNotificationTrigger = handleNotificationTrigger)))@JvmOverloads() final Boolean onMessageReceived(RemoteMessage remoteMessage, Boolean handleNotificationTrigger)
Handles receiving an incoming push notification.
Call this from a custom FirebaseMessagingService to pass push messages to CustomerIO SDK for tracking and rendering
- Parameters:
remoteMessage- Remote message received from Firebase in FirebaseMessagingService.onMessageReceivedhandleNotificationTrigger- indicating if the local notification should be triggered
-
onMessageReceived
@Deprecated(message = This method is deprecated and will be removed in future releases. Use the one with context, replaceWith = @ReplaceWith(imports = {}, expression = onMessageReceived(context = applicationContext, remoteMessage = remoteMessage, handleNotificationTrigger = handleNotificationTrigger)))@JvmOverloads() final Boolean onMessageReceived(RemoteMessage remoteMessage)
Handles receiving an incoming push notification.
Call this from a custom FirebaseMessagingService to pass push messages to CustomerIO SDK for tracking and rendering
- Parameters:
remoteMessage- Remote message received from Firebase in FirebaseMessagingService.onMessageReceived
-
onNewToken
@Deprecated(message = This method is deprecated and will be removed in future releases. Use the one with context, replaceWith = @ReplaceWith(imports = {}, expression = onNewToken(context = applicationContext, token = token))) final Unit onNewToken(String token)
Handles new or refreshed token Call this from FirebaseMessagingService to register the new device token
- Parameters:
token- new or refreshed token
-
onNewToken
final Unit onNewToken(Context context, String token)
Handles new or refreshed token Call this from FirebaseMessagingService to register the new device token
- Parameters:
context- reference to application contexttoken- new or refreshed token
-
-
-
-