larryaasen / upgrader

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

When I select to do update and turn back to app, the dialog disappear. How I force the user to make Update? #295

Open gcouto93 opened 1 year ago

gcouto93 commented 1 year ago

I want to show the dialog everytime. Because when I close the app or select update and back the warning update message disappear. And dont show anymore.

return UpgradeAlert( upgrader: Upgrader( dialogStyle: Platform.isIOS ? UpgradeDialogStyle.cupertino : UpgradeDialogStyle.material, messages: UpgraderMessages(code: 'pt'), showIgnore: false, showLater: false, durationUntilAlertAgain: const Duration(seconds: 5), shouldPopScope:() => false, canDismissDialog: false,

          )
Ahclever2006 commented 1 year ago

I got same issue

Ahclever2006 commented 1 year ago
upgrader: Upgrader(
      showIgnore: false,
      onUpdate: () {
        return false;
      },
      dialogStyle: UpgradeDialogStyle.cupertino,
      messages: UpgraderMessages(
          code: context.locale == const Locale('en') ? 'en' : 'ar'),
      showLater: false,
     //this line will force the dialog to appear if app close but if user got to update and return to app it will disapear
      durationUntilAlertAgain: const Duration(seconds: 1)),
larryaasen commented 8 months ago

@gcouto93 What version of upgrader are you using. There was a fix in version 8.0.0 that may have fixed your issue: - Added support for checking for updates every time the app resumes from the background. (#272)

larryaasen commented 3 months ago

@gcouto93 Still having this issue?

larryaasen commented 3 months ago

@Ahclever2006 Still having this issue?

Ahclever2006 commented 3 months ago

after new version it is gone

larryaasen commented 3 months ago

@Ahclever2006 I don't understand your issue. Can you attach the upgrader log?