How to fix Failed to fetch default token error?

后端 未结 8 2073
无人及你
无人及你 2020-12-01 09:23

\"enter

I am getting this error after installing in iphone.

8条回答
  •  粉色の甜心
    2020-12-01 09:45

    Well, I also got this same problem. Can't fix it using solutions introduced by other posts. It seems that the communication between your client App FCM SDK and the FCM server goes wrong.

    My fix was I loginned to my VPN (mainland China can't use google service if you don't do this). Then I could get the firebase token.

    Besides, if you failed to get the token. Next time you try to access the firebase token using [[FIRInstanceID instanceID] token]. Firebase SDK will try to fetch the token again if it's still nil, and if this attempt succeeds, the token refresh notification (kFIRInstanceIDTokenRefreshNotification) will be posted.

提交回复
热议问题