How to handle FirebaseInstanceId.getInstance().getToken() = null

前端 未结 7 2139
情书的邮戳
情书的邮戳 2020-12-05 15:43

I have just migrated to FCM. I have added my class that extends from FirebaseInstanceIdService to receive a refreshedToken as and when appropriate.

My question is sp

7条回答
  •  独厮守ぢ
    2020-12-05 15:56

    If you are running it on your emulator, check that you have Google play services enabled in Tools -> Android -> SDK Manager -> SDK Tools -> Google play services

    Once installed, reboot both Android Studio and your emulator

    It worked for me

提交回复
热议问题