Package 

Object CustomerIOFirebaseMessagingService.Companion

    • Method Summary

      Modifier and Type Method Description
      final Boolean onMessageReceived(Context context, RemoteMessage remoteMessage, Boolean handleNotificationTrigger) Handles receiving an incoming push notification.
      final Boolean onMessageReceived(Context context, RemoteMessage remoteMessage) Handles receiving an incoming push notification.
      final Boolean onMessageReceived(RemoteMessage remoteMessage, Boolean handleNotificationTrigger) Handles receiving an incoming push notification.
      final Boolean onMessageReceived(RemoteMessage remoteMessage) Handles receiving an incoming push notification.
      final Unit onNewToken(String token) Handles new or refreshed token Call this from FirebaseMessagingService to register the new device token
      final Unit onNewToken(Context context, String token) Handles new or refreshed token Call this from FirebaseMessagingService to register the new device token
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 context
        remoteMessage - Remote message received from Firebase in FirebaseMessagingService.onMessageReceived
        handleNotificationTrigger - 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 context
        remoteMessage - 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.onMessageReceived
        handleNotificationTrigger - 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 context
        token - new or refreshed token