Cast Game Samples

I am trying to launch Google Play Game Manager for iOS but with no success. According to the docs, it should be simple:

-Launch sender iOS -Call initWithSessionID: -Search for gameManagerChannelDidConnect:

The problem is that I never get gameManagerChannelDidConnect. I've tried both subclassing GCKGameManagerChannel and just implementing its delegate. I am not connected or hit by any of the opt-out methods. It is not entirely obvious what is going wrong.

While the documentation is good, it looks like it has some holes that can be fixed with code samples. When can we see samples for Receiver, iOS and Android?

--- EDIT --- Connecting to the same receiver from Android seems to work pretty well, so the issue is with the iOS client infrastructure.

+3


source to share


1 answer


Thanks for trying this!

When you created the GCKGameManagerChannel (which extends GCKCastChannel) using initWithSessionID, did you add the GCKGameManagerChannel to the GCKDeviceManager using addChannel as well?

eg.

...
channel = [[GCKGameManagerChannel alloc] initWithSessionID:...];
channel.delegate = ...;
[deviceManager addChannel:channel];
...

      



If that doesn't fix the problem, can you share some code to help diagnose the problem?

Either way, we'll update the documents with the AddChannel step.

As for the code samples - stay tuned. Sorry for the delay, but they are coming soon! Follow https://github.com/googlecast/

+2


source







All Articles