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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With