Download content when app is updated via google play?

前端 未结 5 711
野趣味
野趣味 2021-02-10 05:24

So this is the first time I am going to send an update for my app and I don\'t know about what actully happens when an app is updated via google-play,

Here are some ques

5条回答
  •  清酒与你
    2021-02-10 05:46

    You can approach in this way

    in the first time user install and start the application, you should store the current version as last_vertion_of_app in the shared preferences. then use a alarm Manager +broadcast receiver+service to check the manifest app version with shared preference stored version if both are different(not equal) that means some update happen. then you can do the thing what you want to happen if updated=true in the save service even without application starts.

提交回复
热议问题