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

How to force updates? #14

Closed
cytryn opened this issue Nov 14, 2019 · 5 comments
Closed

How to force updates? #14

cytryn opened this issue Nov 14, 2019 · 5 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@cytryn
Copy link

cytryn commented Nov 14, 2019

So I have a few questions here on how the package works.

I want to force updates base on the semantic versioning. So if the app updates from 1.0.0 to 2.0.0, I want to be able to force my users to see the message and update, otherwise just pop the alert with default settings.

But for that I would need the version, what is the best way to do that? Because I don't see any public Futures or methods with callbacks.

something like that?

Upgrader().installAppStoreListingURL(myURL);
if (Upgrader().currentAppStoreVersion().someparsing() > Upgrader().currentInstalledVersion().someparsing()) {
 bool  _shouldForceUpgrade = true;
}
@larryaasen larryaasen added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Dec 1, 2019
@larryaasen
Copy link
Owner

@cytryn When you say "force update/upgrade", are you saying you want the user to be prevented from running the app? Lock the user out of the app?

@cytryn
Copy link
Author

cytryn commented Jan 19, 2020

@cytryn When you say "force update/upgrade", are you saying you want the user to be prevented from running the app? Lock the user out of the app?

Exactly... I want to show a message to the user saying that there is a new version fixing a bug or something like that.

@larryaasen
Copy link
Owner

Unfortunately, this package is not able to provide the version back to the app. You can call Upgrader().isUpdateAvailable() directly. Look at the file upgrader_test.dart for an example of this.

@sarinupreti
Copy link

a minimum version feature should be added. so for use under certain version needs to force update the app in order to work. I need this feature as well.

@larryaasen
Copy link
Owner

@cytryn @sarinupreti There is update to this package that now supports minimum app version in PR #39. Check it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants