Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Detect if the app is the one in Beta in Play Store

I fear that the answer will likely be "impossible", but I would like to know if there is a way to detect if my uploaded apk to the Play Store is the alpha/beta or stable channel.

I would like to achieve this because I have a whole menu leading to Beta features that I would like to hide in the stable channel.

This is really usefull because while I fix generic bugs that I push to the Store, I don't want to recompile each time with or without the beta button.

I have unfortunately no code to share, but any help or suggestion would be highly appreciated

enter image description here


I feel like there is actually a good use case for this functionality. Consider the following scenario:

  1. I have an API that increments versions at prod.api.example.com
  2. I have a mobile app that increments versions independently but relies upon the api.
  3. Before the api developers add or remove functionality, they expose the changes at a different url. Say: beta.api.example.com
  4. I want my alpha or beta testers to always be working against the beta url of the api because they will find breaking changes.
  5. When new api changes are released from beta to prod then I want to promote my Android app from alpha or beta to prod without incrementing my mobile app version number and having to rebuild if everything is working properly.
like image 286
Waza_Be Avatar asked May 22 '13 19:05

Waza_Be


People also ask

What is beta in Google Play store?

Android Beta for Pixel offers you a simple way to try pre-release versions of Android, and test drive our new features. The feedback you provide will help us identify and fix issues, and make the platform even better. Enrolled devices will automatically receive updates for the latest beta version of Android.

How do I know if I have Android beta?

If the current user is enrolled in Beta, the app name is presented as "App Name (Beta)". A little further down the page it will also say "You're a beta tester for this app. Awesome!" On the same page your app can also look up the last production Updated date, and latest production version name.


2 Answers

It's pretty simple really, upload a different APK. Maintain a different branch of code with only the beta features in your beta channel. Recompiling shouldn't be a big hassle. You are using some form of source control right?

like image 57
kabuko Avatar answered Sep 27 '22 19:09

kabuko


I hope there is a way do this easily as well, but I have not found one yet.

Another option would be to have a flag which wraps the beta functionality and then use Google Tag Manager http://www.google.com/tagmanager/ to toggle the features you only want on the beta release off before you upgrade the app to production.

like image 39
Cameron Ketcham Avatar answered Sep 28 '22 20:09

Cameron Ketcham