简体   繁体   中英

unable to find token in cache error GCM iOS

I am trying to configure GCM in iOS. I have followed all the steps and created all the certificates required for push notifications. While registering for push notifications, device token is returned which is forwarded to google server. However, registration token returns nil with error

Unable to find token in cache Error Domain=com.google.iid Code=-25300 
"The operation couldn’t be completed. (com.google.iid error -25300.)

This was working initially, but suddenly stopped working. I haven't changed any p12 files or certificates.

I got this issue because the time on my phone was set in the future, once the time was set correctly the problem was resolved.

Initialy I had the problem discussed under: why didRegisterForRemoteNotificationsWithDeviceToken is not called

After following the instructions there, which required to reset the time I finally got the didregisterforremotenotificationswithdevicetoken to work but then I was getting this issues. Once the time was set back to normal everything start working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM