AyogoHealth / cordova-plugin-update-notifier

Cordova plugin for showing a notification for app updates.
Apache License 2.0
27 stars 10 forks source link

How i can enable or disable ? #21

Closed renatofreireda closed 1 year ago

renatofreireda commented 1 year ago

I would like to know how I can enable or disable check update

dpogue commented 1 year ago

If you have the plugin installed, it will automatically check for updates on app launch.

Using the SirenAlertType and AndroidUpdateAlertType preferences, you have a little bit of control over how forcefully the updates are presented (either mandatory updates, or optional).

renatofreireda commented 1 year ago

I installed the plugin and it automatically checks when opening the app. I wanted to be able to enable or disable this check.is it possible?

dpogue commented 1 year ago

No, the plugin is coded so that it checks for updates immediately when launching the app. There is no JavaScript API exposed to control when the update checking happens.