我正在为 iOS 集成 google instance id api,并调用如下适当的方法来获取实例 id。
let gcmConfig = GCMConfig.defaultConfig()
gcmConfig.receiverDelegate = self
GCMService.sharedInstance().startWithConfig(gcmConfig)
GGLInstanceID.sharedInstance().getIDWithHandler { (identity, error) -> Void in if let err = error { print(err) } else{ self.instanceID = identity } }
但是我收到了这个错误
Error Domain=com.google.iid Code=1005 "(null)"
我遵循了这个 url上的文档
任何帮助将不胜感激。