kevinnguy
kevinnguy

Reputation: 454

Where to set Google Cast's custom receiver app ID [Connect SDK]

In Google Cast SDK, I am able to specify the custom receiver app ID by calling:

[self.deviceManager launchApplication:kReceiverAppID];

Where in Connect SDK can I do this?

Upvotes: 1

Views: 337

Answers (1)

Jeremy White
Jeremy White

Reputation: 2829

Per the Connect SDK documentation:

NSString *webAppId;

if ([_device serviceWithName:@"webOS TV"])
    webAppId = @"5G7328DE";
else if ([_device serviceWithName:@"Chromecast"])
    webAppId = @"3E5106AB";

if (!webAppId)
    return;

[_device.webAppLauncher launchWebApp:webAppId success:^(WebAppSession *webAppSession) {
    NSLog(@"web app launch success");
} failure:^(NSError *error) {
    NSLog(@"web app launch error: %@", error.localizedDescription);
}];

Upvotes: 2

Related Questions