Reputation: 51
I downloaded the chromecast ios sample and when I connect the sample application to chromecast, it give the following error:
error domain=com.google.GCKError code=7 "The operation couldn't be completed. (com.google.GCKError error 7.)"
Do you know why?
Upvotes: 3
Views: 4291
Reputation: 73
I got the same error message while testing the "CastHelloText-ios" sample provided by Google on GitHub.
First I checked all the required steps described by Google were ok:
Finally I solved the issue by rebooting the chromecast:
For information, I've performed this reboot after reading the note of this Google documentation:
If you wish to verify that your published application is working properly, you can manually restart your Google Cast device to force a load of new configuration data.
PS: - to reboot your chromecast you can use any chromecast app provided by Google (iOS, Android, MAC, etc.)
Upvotes: 7
Reputation: 1808
For test this app you will need to change this line
[self.deviceManager launchApplication:kReceiverAppID];
To use default applicationID:
[self.deviceManager launchApplication:kGCKMediaDefaultReceiverApplicationID];
Or you need to create a development account and to change kReceiverAppID with your AppID.
And if you have an another error, you can to check the GCKError.h class, there has all error codes possible with explanation
Upvotes: 2
Reputation: 7132
GCKErrorCodeApplicationNotFound - Typically this error will occur if either your device doesn't have [x] send my serial # to Google set, or your AppID is incorrect.
We'll try to get the docs updated shortly.
Upvotes: 2
Reputation: 1
I had the same problem. In my case seems like the Chromecast still associated with the old Application ID. It worked fine after restarting the device.
Upvotes: 0