Could not find token in iOS GCM cache error

I am trying to configure GCM in iOS. I followed all the steps and created all the certificates needed for push notifications. When registering for push notifications, the device token is returned, which is sent to the google server. However, the registration token returns nil with an 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 worked initially, but suddenly stopped working. I have not changed any p12 files or certificates.

+5
source share
1 answer

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

I initially had a problem: why didRegisterForRemoteNotificationsWithDeviceToken is not called

After following the instructions needed to reset the time, when I finally got registered to get permission to participate in the work, but then I got these problems. As soon as time returns to normal, everything will begin to work.

+2
source

Source: https://habr.com/ru/post/1241306/


All Articles