Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 512
AnonymousRacer Avatar asked Oct 31 '22 10:10

AnonymousRacer


1 Answers

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.

like image 70
Alexandros Trepeklis Avatar answered Nov 10 '22 06:11

Alexandros Trepeklis