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

new install or update #1

Closed
ghost opened this issue Sep 10, 2018 · 4 comments
Closed

new install or update #1

ghost opened this issue Sep 10, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 10, 2018

It would be cool if users get told how the app works ( new install) Or new features ( upgrade )

I think there is a flutter plugin to do this..

@Pyozer
Copy link
Owner

Pyozer commented Sep 10, 2018

Sorry I don't understand what you want to say :/
This is not an app, it's a package. And this package can be integrated to an existing app.

@ghost
Copy link
Author

ghost commented Sep 10, 2018 via email

@ghost
Copy link
Author

ghost commented Sep 10, 2018

@Pyozer
Copy link
Owner

Pyozer commented Sep 10, 2018

Oh ok I understand ;) I think it's not the role of this package to handle if it's a new installation or an update.
You need to pass a different list of PageViewModel, depending on whether it is a new installation or a new update.

To verify this, you can store (SharedPreferences) a boolean (isFirstBoot) and when onDone() is called, change it to "false". Also store a String (lastAppVersion) for the current version of the application (when onDone() is called, modify it with the current version).
If "isFirstBoot" is null or true, this is a new installation. And if this is not the first boot and the current version is different with the stored version (lastAppVersion), so this is an update.

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

1 participant