ofload / native_updater

Flutter package to embed native in-app updater
MIT License
56 stars 48 forks source link

How can I catch the event if the user has closed the forced update alert? #29

Open lucianokapluk opened 2 years ago

lucianokapluk commented 2 years ago

Hi, I am using forced update, but when I press the close icon my app it reopens, and i get : PlatformException (PlatformException(Update failed, 0, null, null))

I am running in debug mode on my physical device.

milhomem commented 2 years ago

Hi @lucianokapluk today you can't. Although a callback could be passed so you could customise your action to when the user decides to ignore the update.

The force update option is intended to block the usage of the App, hence, exit() is used by design.

Feel free to send contributions on how it could fulfill your need and if you think it will be useful to others.