//Catch Pre tags and apply highlighting

Google Play Services API Key

To enable Android app resubmissions, you must create an API key.

PLEASE NOTE: The Google Play Services API Key is a different file to your google-services.json file. The google-services.json file created in our Android Push Notifications doc is used within your app to connect to firebase and facilitate Android Push Notifications and is normally labelled google-services.json. The Google Play Services API Key is used on our build server to facilitate sending your completed app to Google Play and will usually take the form of a file name like "api-1234567890.json". Mixing up these two files will cause errors.

Login to the Google Play Console.

Click Setup, then API Access, then "Choose a Project to Link"

On the API access page, scroll down to Service accounts and click Create a new service account. Follow the instructions to get to Google Cloud Platform

On the Google Cloud Platform, click + CREATE SERVICE ACCOUNT on the top menu bar

A 3-step Create service account page comes up, where you have to provide a Service account name first. A Service account ID is automatically generated based on the Service account name you typed.

Call it AppPresser Deploy, and click Create.

Click the role field, select Project => Owner (or any role), and click continue.

Leave the other fields blank, and click Done.

You land back on the Service Accounts tab of Google Cloud Console where you can create a key to your new service account. Bitrise will use this key to authenticate as the service account. Click the ellipsis next to the new service account and select Manage keys from the options.

You are directed to the KEYS page of the Service accounts. Click the ADD KEY dropdown and select Create new key option.

Choose JSON format, and click Create.

Save the key to your computer and also send a copy to us.

Once done you can head back to the API Access page back in your Google Play Console and you'll be able to see the new service account listed. Click View Play Console Permissions to give this service account access to your apps:

As a minimum, ensure all 4 checkboxes under the Releases section are checked in the Account Permissions tab. Alternatively, checking the Admin checkbox will give all permissions with a single click. You can also assign permissions on a per-app basis but AppPresser requires those 4 release checkboxes for any Google Play app you intend to deploy to, so it's usually easier to just assign that Account-wide

Click Save Changes.

You're done! Make sure to send us the key and we'll get you setup for automated Google Play Store resubmissions.