Setting up your Google Developers Service Account
While using fast-lane for app deployments.
Hi there! Are you tired of struggling to figure out how to set up a service account for uploading APKs to the Google Play Console using Fastlane? Look no further! I am here to guide you through the process step by step. Let's get started and make your APK uploading process smooth and effortless.
Open the Google Play Console.
Click Setup and then select API access.
Under Service accounts, click on the link saying learn how to create a service account, a modal will open, and click on step 1 in the modal to open the google could platform, don't click on the Done button yet.
Google cloud platform will be opened with the service account section selected, at the top click on CREAT SERVICE ACCOUNT. Fill in the service name and description click create and continue.
In the roles section search for Service Account User, On right select service account user and click continue. and then click done the third step is optional.
On the new page, you will see the created service account but under Key Id the field is empty, So click on the vertical ellipsis icon and select manage keys.
On the new screen with the key selected at the top, Click on ADD KEY button and click create a new key, this will create a key choose the JSON option, then click create. A JSON file will be downloaded to your computer you will use it with Fastlane in the AppFile so please remember where it was saved to.
Go back to your google play console dashboard and click on Done, You will be able to see your newly added service account. To Grant Access, click on View play console permissions, and under Account Permissions select Admin (All Permissions) and click Invite User, you are done.
You can use Fastlane to run validate_play_store_json_key json_key:/path/to/your/downloaded/file.json to test the connection to Google Play Store with the downloaded private key. Once that works, add the path to the JSON file to your Appfile.
Thanks for taking the time for reading this. If you have any suggestions please leave a comment below. Greetings and keep coding…