Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to detect that an android app is either a beta version or production version?

We use beta staging in google play store. For app side force update functionality we want to detect if our app is either coming from the beta stage or the production stage of the google play store. Is this possible in android apps?

like image 357
longliveenduro Avatar asked Jul 18 '14 07:07

longliveenduro


People also ask

How do I know if I have Android Beta?

Open a web browser on your device and go to 'https://www.google.com/android/beta'. Now, login with your registered Google account when prompted. Once logged in, Tap or click on view your eligible devices option. If your device is eligible, you can see your device listed.

What is alpha and beta testing in Android?

An alpha testing group should be small and test the least stable, experimental versions of your Actions (such as within your company or team). Use beta testing with a larger group to test stable versions of your Actions that are near release. Provide a channel for testers to send you feedback.


2 Answers

It's currently not possible to detect if the app was installed from either the Beta or Production Track on the Play Store.

Assuming your app will be connecting to an API that you own - What you can do is let the API determine if the App is a Beta or Prod App. For example store the app version number(s) that are considered a Prod app on the API, when the app connects to the API it passes it's version number to the API and the API returns a response with whether it is Prod (The version matches one it has stored) or Beta App (it's does not match one it has stored).

There are 2 Limitations to this though:

  1. You will need to update the mobile app version number(s) on your API when the app is ready to go to production.
  2. Mobile apps will be determined by their version number not what Track they are on in Play Store.

If you're happy with these 2 limitations then you will only have 1 APK and a means to determine if your app is Prod or Beta.

like image 135
Dizzy Avatar answered Sep 21 '22 15:09

Dizzy


You can do this with the Google Play Developer API but it looks pretty painful.

https://developers.google.com/android-publisher/edits/overview

https://github.com/googlesamples/android-play-publisher-api/blob/master/v2/java/src/com/google/play/developerapi/samples/ListApks.java

like image 37
Jayen Avatar answered Sep 22 '22 15:09

Jayen