Firebase (FCM) registration token in Flutter

前端 未结 4 1455
暗喜
暗喜 2021-02-12 14:26

I am trying to send notification from Java Rest Api (using Firebase Admin sdk) to my Flutter application and it seems it requ

4条回答
  •  鱼传尺愫
    2021-02-12 15:19

    I am not clear your question though. For FCM you have to extend FirebaseMessagingService.

    Example:

    class PNPFirebaseMessagingService : FirebaseMessagingService() {
      override fun onNewToken(token: String?) {
         // you can collect token from here
      }
    }
    

提交回复
热议问题