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 o
You can add a string in your resources, called 'VERSION' , and give it the appropriate value.
From your app, you can check that ID and do whatever is required