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

Mandatory alert should not close after onUpdate #455

Open
marcorizza opened this issue Oct 1, 2024 · 3 comments
Open

Mandatory alert should not close after onUpdate #455

marcorizza opened this issue Oct 1, 2024 · 3 comments
Labels
How To? This is a how to question

Comments

@marcorizza
Copy link
Contributor

Now when I click the update button the alert closes, I want to make sure that it never closes and that the user updates the app compulsorily, how can this be done?

@Anilaydinaa
Copy link

++++

@sreeraj-gs
Copy link

same issue here, can we override isTooSoon and hasAlerted ?

@larryaasen
Copy link
Owner

Since Upgrader.isTooSoon() is a public method, it can be overridden and you can customize the behavior as needed. However, _hasAlerted is private and cannot be overridden.
Also, UpgradeAlert.onUserUpdated(), which is called when the user taps on the update button, can also be overridden to prevent the pop from happening.

@larryaasen larryaasen added the How To? This is a how to question label Oct 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
How To? This is a how to question
Projects
None yet
Development

No branches or pull requests

4 participants