Automatic application update using the HockeyApp SDK

I am using Android HockeyAppSDK to deploy updates for an application. I am trying to use docs to configure the default UpdateManager class to allow updates to be installed automatically, without prompting the user to accept the update.

I am completely unsure how to handle this. The obvious way (in my opinion, anyway) is to do the following:

 private void checkForUpdates () { UpdateManager.register (this, Constants.HOCKEY_API_KEY, new UpdateManagerListener() { public void onUpdateAvailable() { //I assume stuff will need to be handled here } }); } 

Has anyone done this before or can find a way to do this?

Thank you very much

+6
source share
2 answers

After sending an email to the hockey support team, they believe that it is not possible to perform an update without asking users to accept within their current compiled API.

All source material will require modification and compilation before working as expected.

+4
source

You can use UpdateTask from the library

0
source

Source: https://habr.com/ru/post/955396/


All Articles