6

I can no longer find the app_id that is required for the implementation of Google Play Services including Google Cast, In-app Billing, etc.

Example:

CastOptions castOptions = new CastOptions.Builder()
        .setReceiverApplicationId(context.getString(R.string.app_id))
        .build();

It used to be obtained via the Google Play Developer Console here:

Google Play Developer Console 2014

However Google recently released their new Play Console and things have been completely restructured:

Google Play Developer Console April 2017

Where is the app_id found now on the Play Developer Console?

2
  • check this answer Commented Apr 21, 2017 at 4:24
  • Sorry but that was not relevant. I'm implementing cast at the moment and cast is separate to these APIs. The app id is not the same as these API project ids as well, it is usually something generated from creating a play store instance, not an API project. Commented Apr 21, 2017 at 4:33

3 Answers 3

13

You can use the "Default Media Receiver" app id if you are okay with using the "Default Media Receiver". This means you can't customize how the receiver looks when receiving your app, so no custom progress bar on the tv or something (as far as I understand).

So you can use one of the following ID's:

•For Android apps: CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID

•For Chrome apps: chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID

•For iOS apps: kGCKMediaDefaultReceiverApplicationID

Default app_id for Default Media Receiver

Or, if you need that customization you can use one of the other receiver types (Styled/Custom), but for these you will need to register for a unique app_id for a small fee at the Google Cast SDK Developer Console.

2

@ali-naddaf is correct, the application Id required for casting is not found on the Google Play Developer console. It is instead obtained by visiting https://cast.google.com/publish/#/overview and creating a new application. The default is a styled media receiver. Once you have created your application instance, you are given your application Id:

Google Cast SDK Console

You can then implement that application id in a strings xml file to set up your cast options:

CastOptions castOptions = new CastOptions.Builder()
    .setReceiverApplicationId(context.getString(R.string.app_id))
    .build();
1

To register an App Id for Cast, go to this page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.