winsontan520 / Android-WVersionManager

[Deprecated] Library to check new update available in background by using own content
141 stars 57 forks source link

add force download #16

Closed anggazan closed 5 years ago

anggazan commented 6 years ago

hi...i'm Angga from Indonesia, first i'm sorry for my bad english..i'm very helpful with this library but i need some request for this library :

winsontan520 commented 6 years ago

@anggazan I no longer maintain this project. It would be good if you can host the project with your account. I can put a link to your project.

anggazan commented 6 years ago

@winsontan520 i'm new in android development and don't know how to do that...maybe @revanmj can do my request...

revanmj commented 6 years ago

I just added option to force update check by calling checkVersion(true) to my fork (it will simply ignore remind timer).

I don't think that forcing a user to update (by simply disabling all buttons except Update) or downloading APK file before checking first if it's newer than what already is installed is a good UX, so if you want those options, I propose you create your own fork and add them.

Though I may add more complex solution for the first one in the future (checking additional field in JSON file if app functionality should be blocked until it is updated to most recent version, displaying proper message about it to user and exposing this data to a dev via some listener, so he/she can do actual blocking) as I see how this can be a problem if server side interface is changed without ensuring backwards compatibility.

anggazan commented 6 years ago

"checking additional field in JSON file if app functionality should be blocked until it is updated to most recent version" Yes...that's what i mean of "force update" with disabled "remind later" and "ignore" button so user should update to recent version otherwise app will not work properly because i updated server side script.

revanmj commented 5 years ago

In case you still need it, I added this to my fork in 1.7 version.

winsontan520 commented 5 years ago

Thanks for the contribution, but I no longer maintain this repo. Any PR can go to @revanmj fork https://github.com/revanmj/Android-WVersionManager