How to force update in Android application if new version is available?

后端 未结 6 460
小蘑菇
小蘑菇 2021-01-03 12:56

I am working on an application I want to give force update to app users if new version available on play store, the app should show a dialog message to user.

6条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-03 13:22

    In you first activity you can make an api call that should return the latest version of your app. Compare that with the current app version if current version is lower show a dialog asking to update. They update button can open you app in play store

提交回复
热议问题