Token issue with Firebase

Whenever I run my application (based on Firebase) in iOS Simulator, I get a few warnings printed on the console:

<FIRInstanceID/WARNING> Error failed to delete all GCM tokens from keychain Error Domain=com.google.iid Code=-34018 "(null)" <FIRInstanceID/WARNING> Error unable to save iid-token to keychain Error Domain=com.google.iid Code=-34018 "(null)" <FIRInstanceID/WARNING> Failed to fetch default token Error Domain=com.firebase.iid Code=502 "(null)" 

However, if I run the application on the device, I have no problem and it works as expected. After further research, I discovered that a problem might exist with Firebase Cloud Messaging (FCM). After I found out, I went to GoogleService-Info.plist and I set the IS_GCM_ENABLED key to NO. However, this did not solve my problem.

+5
source share
1 answer

I figured out a solution to this problem. It turns out there is a keychain error with Xcode 8. To solve this problem, I turned on my KeyChain Sharing application in the Features section. Hope this helps someone with the same issue.

+3
source

All Articles