Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The update button is not showing #147

Closed
mohammad-alnimer1 opened this issue Dec 6, 2021 · 20 comments
Closed

The update button is not showing #147

mohammad-alnimer1 opened this issue Dec 6, 2021 · 20 comments
Labels
Android How To? This is a how to question

Comments

@mohammad-alnimer1
Copy link

I/flutter (13003): end
I/flutter (13003): upgrader: build UpgradeAlert
I/flutter (13003): upgrader: blocked: true
I/flutter (13003): upgrader: debugDisplayAlways: true
I/flutter (13003): upgrader: debugDisplayOnce: false
I/flutter (13003): upgrader: hasAlerted: false
I/flutter (13003): upgrader: shouldDisplayUpgrade: true
I/flutter (13003): upgrader: shouldDisplayReleaseNotes: true
I/flutter (13003): upgrader: showDialog title: Update App?
I/flutter (13003): upgrader: showDialog message: A new version of Salwa & Fairouz is available! Version 0.0.1 is now available-you have 2.2.3.
I/flutter (13003): upgrader: showDialog releaseNotes: de
Screenshot_20211206-133639

@mohammad-alnimer1
Copy link
Author

I/flutter (24889): upgrader: package info packageName: com.vibes.salwawfairouz
I/flutter (24889): upgrader: package info appName: Salwa & Fairouz
I/flutter (24889): upgrader: package info version: 2.0.0
I/flutter (24889): upgrader: appcast is available for this platform
I/flutter (24889): upgrader: appcast item count: 1
I/flutter (24889): upgrader: appcast best item version: 2.1.0
I/flutter (24889): upgrader: blocked: true
I/flutter (24889): upgrader: debugDisplayAlways: false
I/flutter (24889): upgrader: debugDisplayOnce: false
I/flutter (24889): upgrader: hasAlerted: false
I/flutter (24889): upgrader: appStoreVersion: 2.1.0
I/flutter (24889): upgrader: installedVersion: 2.0.0
I/flutter (24889): upgrader: minAppVersion: 2.1.0
I/flutter (24889): upgrader: isUpdateAvailable: true
I/flutter (24889): upgrader: shouldDisplayUpgrade: true
I/flutter (24889): upgrader: shouldDisplayReleaseNotes: true
I/flutter (24889): upgrader: showDialog title: Update App?
I/flutter (24889): upgrader: showDialog message: A new version of Salwa & Fairouz is available! Version 2.1.0 is now available-you have 2.0.0.
I/flutter (24889): upgrader: showDialog releaseNotes: desc

@larryaasen
Copy link
Owner

@mohammad-alnimer1 Can you post the code where you are using UpgradeAlert?

@mohammad-alnimer1
Copy link
Author

final appcastURL = 'https://firebasestorage.googleapis.com/v0/b/flash-chat-9bbda.appspot.com/o/appcast.xml?alt=media&token=70bfe573-c2ab-46b7-bdb2-a3aeb6278d32';
final cfg = AppcastConfiguration(url: appcastURL, supportedOS: ['android']);

return MaterialApp(
  title: widget.appName,
  theme: widget.theme,
  debugShowCheckedModeBanner: false,
  home: UpgradeAlert(
    appcastConfig: cfg,
    showLater: false,
    showIgnore: false,
    // debugAlwaysUpgrade: true,
    minAppVersion: '2.1.0',
    debugLogging: true,

    dialogStyle: UpgradeDialogStyle.material,
    child:getWidget(),
  )
);

@mohammad-alnimer1
Copy link
Author

<title>Help Code TJCODE- Appcast</title> <title>Version 2.1.0</title> desc Tue, 08 Jun 2021 12:00:00 +0000

@larryaasen
Copy link
Owner

@mohammad-alnimer1 I'm not sure what is wrong here. Can you attach a screenshot of the UpgradeAlert displayed in your app?

@larryaasen larryaasen added How To? This is a how to question need more information Further information is requested labels Dec 22, 2021
@Ghoral
Copy link

Ghoral commented Jan 5, 2022

I have faced the same issue.
Steps:

  1. Update alert pops up
  2. Click on update now
  3. Navigates to playstore but the button is still open (expected Update)

Screenshot_20220105-102806_2 (1)

@Ghoral
Copy link

Ghoral commented Jan 5, 2022

I have used only update alert widget and no other configuration.
code

@larryaasen
Copy link
Owner

@Ghoral The screenshot you provided is taken from the Google Play Store. The upgrader package does not control the buttons displayed on the Play Store.

  • What version is being displayed on the Play Store (can you add a screenshot?)
  • What is the upgrader log showing? (can you attach the upgrader log?)

@Ghoral
Copy link

Ghoral commented Jan 7, 2022

Upgrader Log

I/flutter (15888): upgrader: appStoreVersion: 1.15.1
I/flutter (15888): upgrader: installedVersion: 1.15.0
I/flutter (15888): upgrader: minAppVersion: null
I/flutter (15888): upgrader: isUpdateAvailable: true
I/flutter (15888): upgrader: shouldDisplayUpgrade: true
I/flutter (15888): upgrader: shouldDisplayReleaseNotes: true
I/flutter (15888): upgrader: showDialog title: Update App?
I/flutter (15888): upgrader: showDialog message: A new version of APP_NAME is available! Version 1.15.1 is now available-you have 1.15.0.
I/flutter (15888): upgrader: showDialog releaseNotes: - notes
I/flutter (15888): upgrader: button tapped: update now
I/flutter (15888): upgrader: launching: https://play.google.com/store/apps/details?id=identifier
I/UrlLauncher(15888): component name for https://play.google.com/store/apps/details?id=identifier is {com.android.vending/com.google.android.finsky.activities.MainActivity}

Play store version
Screenshot_20220107-135044 (1)

@larryaasen
Copy link
Owner

@Ghoral Based on the information provide it appears that upgrader is behaving as designed. Tapping on the Update button on the upgrader widget takes the user to the Play Store. I don't see a problem here with upgrader. Perhaps there is an issue with the Play Store. Maybe the account being used on the Play Store does not match the account used on the phone.

@Ghoral
Copy link

Ghoral commented Jan 13, 2022

Hello @larryaasen.
I will do some workaround to see if I am missing something.

@AlaaGitHub2020
Copy link

AlaaGitHub2020 commented Feb 6, 2022

I faced the same issue with my app !! Could you please tell me did you fixed it or did you know why the update did not show on the google store after navigator the user there ?! @Ghoral @larryaasen

@Ghoral
Copy link

Ghoral commented Feb 7, 2022

@AlaaGitHub2020 No I haven't found any solution yet.

@deepak16paliwal
Copy link

@larryaasen it is still an issue because when we do live app from AppStore then Your Upgrader get that information but on AppStore it will take 30 minutes to 1 hour fetch that updated app.

@larryaasen
Copy link
Owner

@deepak16paliwal

  1. App Store or Play Store?
  2. Are you saying that upgrader determines there is an update on the store, and then takes the user to the store, but the store does not show the update yet, because there is a 30 to 60 minute delay showing the update?

@larryaasen
Copy link
Owner

larryaasen commented May 6, 2022

@deepak16paliwal Can you share a few screenshots of the store listing when this happens?

@larryaasen
Copy link
Owner

@mohammad-alnimer1 Is this still an issue?

@innerk
Copy link

innerk commented Aug 1, 2022

hi @larryaasen yes it's still an issue on google play,
the button says open and not upgrade

@innerk
Copy link

innerk commented Aug 2, 2022

@larryaasen already found the answer here

@larryaasen
Copy link
Owner

It seems that the Play Store button does not alway change from Open to Update immediately as we would expect. Maybe Google can fix that.

@larryaasen larryaasen added Android and removed need more information Further information is requested labels Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Android How To? This is a how to question
Projects
None yet
Development

No branches or pull requests

6 participants