How to notify the users that a new version of your app is released
Your app can use the Play Core library to support the following UX flows for in-app updates:
Flexible updates provide background download and installation with graceful state monitoring. This UX flow is appropriate when it’s acceptable for the user to use the app while downloading the update
Immediate updates are full screen UX flows that require the user to update and restart the app in order to continue using it.
1- add the Play Core library to the Gradle file
2- Check for update availability
3-Get a callback for update status by implementing onActivityResult()
4-Create a listener to track request state updates.