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
I feel like there is actually a good use case for this functionality. Consider the following scenario:
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.
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.
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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With