I am integrating google instance id api for iOS and called the appropriate method as follows to get an instance 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 } }
However i got this error
Error Domain=com.google.iid Code=1005 "(null)"
i followed the documentation on this url
Any help would be greatly appreciated.