ofload / native_updater

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

NativeUpdater.displayUpdateAlert default call update does not work #32

Open elmar001 opened 2 years ago

elmar001 commented 2 years ago

Using it like this: NativeUpdater.displayUpdateAlert( context, forceUpdate: true, );

It displays the alert popup box but clicking update button does not affect anything. Tested with different iOS versions on physical devices and full production AppStore versions.

elmar001 commented 2 years ago

Found the problem. When using default constructor format - NativeUpdater.displayUpdateAlert( context, forceUpdate: true, ); URL is not accessible if there are non-Unicode characters (for example, non-English letters) as AppStore URL includes actual name of the app and numeric id not only the package id. Passing appStoreUrl explicitly solved the issue and update button works now.