cordova-plugin-app-update icon indicating copy to clipboard operation
cordova-plugin-app-update copied to clipboard

AutoUpdate without prompt: immediate App restart

Open carlo318 opened this issue 7 years ago • 4 comments

With this modification the app is able to AutoUpdate and Restart without the prompt "The App needs to be updated", that is without the need for the user to tap on button "Update". The App AutoUpdates and Restarts by itself, without any user interaction.

carlo318 avatar Dec 18 '17 11:12 carlo318

@carlo318

Sorry, I cannot accept this PR.

Everyone has his own needs, so you must make Immediate update as an optional parameter. https://github.com/vaenow/cordova-plugin-app-update/blob/0211b6d86f1d3abffcd65e910a649be9b6c15faa/www/AppUpdate.js#L14

Look forward to your next Pull Request 🙂

vaenow avatar Dec 19 '17 10:12 vaenow

You are right, I have committed, in my branch, the version that suits my needs. For sure, It's better to add a parameter.

But it seems not very clear to put this kind of parameter in authentication options. Anyway, if you think it's fine to put it there, I will do it. Thankyou. Carlo

carlo318 avatar Dec 20 '17 12:12 carlo318

Please let me know if the new parameter skipPrompt is fine. Thanks.

carlo318 avatar Dec 20 '17 15:12 carlo318

Hey guys!, Is this PR merged?

ranaavneet89 avatar Jun 19 '20 08:06 ranaavneet89