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.
Edit
Report