Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/96.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS GCM-GlgInstanceID |将来最后一次签入时间戳无效_Ios_Swift_Google Cloud Messaging - Fatal编程技术网

iOS GCM-GlgInstanceID |将来最后一次签入时间戳无效

iOS GCM-GlgInstanceID |将来最后一次签入时间戳无效,ios,swift,google-cloud-messaging,Ios,Swift,Google Cloud Messaging,我们今天在运行应用程序时开始注意到这个错误。我们在互联网上找不到任何与此相关的信息。这只是GCM的问题还是我们需要解决的一些操作顺序 2015-12-23 11:44:01.411: GGLInstanceID | Invalid last checkin timestamp in future. 2015-12-23 11:44:01.471: GGLInstanceID | Unable to find token in cache Error Domain=com.google.iid C

我们今天在运行应用程序时开始注意到这个错误。我们在互联网上找不到任何与此相关的信息。这只是GCM的问题还是我们需要解决的一些操作顺序

2015-12-23 11:44:01.411: GGLInstanceID | Invalid last checkin timestamp in future.
2015-12-23 11:44:01.471: GGLInstanceID | Unable to find token in cache Error Domain=com.google.iid Code=-25300 "(null)"

不是100%确定这是最终的解决办法,但我不再看到这个问题,我相信这只是由于操作顺序。下面是我正在使用的顺序,看起来还行

在AppDelegate中,使用选项完成启动:

let instanceIDConfig = GGLInstanceIDConfig.defaultConfig();
instanceIDConfig.delegate = self
GGLInstanceID.sharedInstance().startWithConfig(instanceIDConfig)
在AppDelegate DidRegisterForRemotonificationswithDeviceToken中:

gcmRegistrationOptions = [kGGLInstanceIDRegisterAPNSOption:deviceToken, kGGLInstanceIDAPNSServerTypeSandboxOption:true];
GGLInstanceID.sharedInstance().tokenWithAuthorizedEntity(gcmSenderID,
                scope: kGGLInstanceIDScopeGCM,
                options: gcmRegistrationOptions,
                handler: gcmRegistrationHandler);
在AppDelegate GCMRRegistrationHandler中:

if let _ = registrationToken {
     //REGISTER TOKEN WITH BACKEND
}
在AppRefresh中:

GGLInstanceID.sharedInstance().tokenWithAuthorizedEntity(gcmSenderID,
            scope: kGGLInstanceIDScopeGCM,
            options: gcmRegistrationOptions,
            handler: gcmRegistrationHandler)

我也面临同样的问题。你解决了吗?到目前为止,还没有。我今天将进一步挖掘,希望得到正确的操作顺序和/或确定问题。如果成功,我一定会发布“修复”。到目前为止,虽然我认为这只是一个警报类型的问题,对在iOS中使用GCM的操作没有任何真正的影响。您仍然有这个错误吗?。。我有同样的问题…同样的问题在这里这是荒谬的,我得到它随机应用程序开始