API Reference

com.kinvey.android.push

Class KinveyFCMService

  • com.kinvey.android.push.KinveyFCMService


  • public class KinveyFCMService

    Firebase Messaging Service responsible for handling FCM messages.

    To use FCM for push notifications, extend this class and implement the provided abstract methods. When FCM related events occur, they relevant method will be called by the library.

    • Field Detail

      • MESSAGE_FROM_FCM

        public static java.lang.String MESSAGE_FROM_FCM
      • TAG

        public static java.lang.String TAG
      • TRIGGER

        public static java.lang.String TRIGGER
      • REG_ID

        public static java.lang.String REG_ID
    • Constructor Detail

      • KinveyFCMService

        public KinveyFCMService()

        Firebase Messaging Service responsible for handling FCM messages.

        To use FCM for push notifications, extend this class and implement the provided abstract methods. When FCM related events occur, they relevant method will be called by the library.

    • Method Detail

      • onMessageReceived

        public void onMessageReceived(com.google.firebase.messaging.RemoteMessage remoteMessage)

        Called when message is received.

        Parameters:
        remoteMessage - Object representing the message received from Firebase Cloud Messaging.
      • onMessage

        public void onMessage(java.lang.String r)
      • onNewToken

        public void onNewToken(java.lang.String token)

        Persist token to third-party servers.

        Modify this method to associate the user's FCM InstanceID token with any server-side account maintained by your application.

        Parameters:
        token - The new token.