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

Dialog not shown when App on Playstore #21

Closed
SyedAmmarSohail opened this issue May 22, 2021 · 1 comment
Closed

Dialog not shown when App on Playstore #21

SyedAmmarSohail opened this issue May 22, 2021 · 1 comment

Comments

@SyedAmmarSohail
Copy link

I'm very appreciate your work for in app update.
But one thing I notice that update dialog not shown when an app is already on play store even the version number and code is different.
I used latest native_updater version 0.1.0
Please look into this.

@milhomem
Copy link
Contributor

Hi @SyedAmmarSohail , I'm not quite sure what you mean but this module does not detect new versions on the store automatically. All logic is up to the developer.

You can check your current version with PackageInfo:

 /// Get Current installed version of app    
final PackageInfo info = await PackageInfo.fromPlatform();    
String currentVersion = info.version.trim().replaceAll("[a-zA-Z]|-", "");

If you want something that compares automatically with the stores you should look at something like https://pub.dev/packages/new_version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants