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 Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String MESSAGE_FROM_FCM 
      static java.lang.String REG_ID 
      static java.lang.String TAG 
      static java.lang.String TRIGGER 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void onMessage() 
      void onMessageReceived()
      Called when message is received.
      void onNewToken()
      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.
    • 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
    • Method Detail

      • onMessageReceived

        public void onMessageReceived()

        Called when message is received.

      • onMessage

        public void onMessage()
      • onNewToken

        public void onNewToken()

        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.