Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 230059

Google Play: Automatically publish releases?

$
0
0

The previous “solution” isn’t much of a solution at all.

Since I have already written a webhook, I’m going to try and add functionality so that on the success of an android build I will attempt to use The Google Play Developer Publishing API Edits methods. Here’s their guide

I haven’t written the routine yet, but after seeing this thread, I asked Gemini for help and it eventually recommended the following (I’ll let you know how it goes). The biggest issue may be getting the editId of the draft:

Committing a Draft to Google Play Console for Internal Testing

To commit a draft to the Google Play Console and make it visible to internal testers, you’ll primarily use the edits.commit method of the Google Play Console API.

Construct an API Request:

  • Use a suitable HTTP client (e.g., curl, Python’s requests, or Java’s HttpURLConnection) to make a POST request to the following URL:

https://androidpublisher.googleapis.com/androidpublisher/v3/applications/{packageName}/edits/{editId}:commit

  • Replace {packageName} with your app’s package name and {editId} with the ID of the draft you want to commit.
  • Set the Content-Type header to application/json.
  • Include an authorization header with a valid access token generated using your service account key.

Send the Request:

  • Send the POST request to the API endpoint.

Viewing all articles
Browse latest Browse all 230059

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>