larryaasen / upgrader

A Flutter package for prompting users to upgrade when there is a newer version of the app in the store.
MIT License
558 stars 271 forks source link

Upgrader is not working on iOS, dialog box blinks when the app open and then disappear from the screen #276

Open zaafi opened 1 year ago

zaafi commented 1 year ago
larryaasen commented 1 year ago

@zaafi Can you provide you upgrader log and the code you used with upgrader?

fabiototh commented 1 year ago

I have an app in the App Store of Brazil, then I: return UpgradeAlert( upgrader: Upgrader( countryCode: "BR", debugDisplayAlways: true, ),

But, the alert does't open. when I consulted in the Itunes I found it. CustomButton( label: 'test', onPressed: () async { await Future.delayed(Duration.zero); final itunes = ITunesSearchAPI(); final result = itunes.lookupByBundleId( 'br.*****', country: "BR", ); result.then((value) { log('iTunes: $value'); }); }),

                          log: iTunes: {resultCount: 1, results: [{features: [iosUniversal], isGameCenterEnabled: false, advisories: [

how can I solve this?

dfdgsdfg commented 11 months ago

https://github.com/larryaasen/upgrader/issues/331

https://github.com/larryaasen/upgrader/issues/250

Seems IOS upgrader does not work. Also same here +1.

zaafi commented 11 months ago

331

250

Seems IOS upgrader does not work. Also same here +1.

When calling from the main.dart file, it is necessary to adjust the calling strategy. Utilize any landing screen within your application to invoke the upgrader; it will function appropriately in that context.

larryaasen commented 6 months ago

@zaafi Can this be closed or do you still have issues on iOS?