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

Prompt users to upgrade when there is a newer version is available #217

Open
chandansgowda opened this issue Dec 3, 2023 · 6 comments · May be fixed by #226
Open

Prompt users to upgrade when there is a newer version is available #217

chandansgowda opened this issue Dec 3, 2023 · 6 comments · May be fixed by #226
Assignees
Labels
enhancement New feature or request

Comments

@chandansgowda
Copy link
Member

chandansgowda commented Dec 3, 2023

🚀 The feature

In order to enhance the user experience and maintain optimal app functionality, we propose the implementation of a version checking and forced app update feature in our project. This feature will enable us to notify users when their current app version is no longer supported, prompting them to update to the latest version.

@chandansgowda chandansgowda added the enhancement New feature or request label Dec 3, 2023
@SimardeepSingh1450
Copy link
Contributor

SimardeepSingh1450 commented Dec 4, 2023

@chandansgowda i found a package called new_version , alternates to this are upgrader and app_update package.
We can fetch the latest version of our app(when on playstore) using new_version and we can fetch the current user's resonate app version using package_info_plus and depending on wether we want to discontinue beyond a specific version we can prompt the user to make a forced update using upgrader. What do you think about this solution ?

@chandansgowda chandansgowda added codepeak-23 Part of CodePeak 2023 hard Part of CodePeak 2023 - 20 Points labels Dec 5, 2023
@chandansgowda
Copy link
Member Author

@SimardeepSingh1450 Based on your research, which one would you suggest and why ?

@Touseef-md
Copy link

Hey, I would like to work on this issue. Could you please assign this to me.

@SimardeepSingh1450
Copy link
Contributor

SimardeepSingh1450 commented Dec 9, 2023

@chandansgowda
in_app_update : Renders a playstore dialogbox msg for updating.
When is this useful ? When we want users to only use the latest updated version of the app, because I think it has a method of checking the latest version of any app from playstore.

Update : Let's not use other packages such as upgrader and new _version because they dont bring that much more of a value being a package they render just some dialog-box which we also can make by ourselves.

My solution would be :
We would have to set a threshold value everytime we release a new version of the app, this threshold old version value will help our app to know when to prompt that dialog-box.
Make an api endpoint where the first thing when app opens up will make the request to check the threshold value, fetch user's app version info from package_info, and then make a comparison wether the value is less or equal to threshold value, if so then don't let the users use the app until updated.

Q - Why make an api request for minimum version whenever app initiates ?
Because app will keep on getting updated and it would be a dynamic value, depending on the new features we keep on adding, it is most likely that we would need to update the minimum version value as and when required.

@chandansgowda
Copy link
Member Author

So since you both ( @SimardeepSingh1450 and @Touseef-md ) I'll be assigning both of you. Please communicate with each other and work on the feature.

@SimardeepSingh1450
Copy link
Contributor

@chandansgowda I have made the required changes in pr : #226 , please review the pr and let me know if you want some changes in it .

@chandansgowda chandansgowda removed codepeak-23 Part of CodePeak 2023 hard Part of CodePeak 2023 - 20 Points labels Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants