-
Notifications
You must be signed in to change notification settings - Fork 409
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
When rule is set to .critical, previous skipped version setting should be ignored #402
Comments
Man oh man - are you the same Alex from Swaag? It's been a long time. I need to think through this problem and I will get back to you later tonight |
Yup, just tested this out in the sample app by running the following functions in AppDelegate
When I ran 1, clicked Skip, closed the process. Relaunched the app with 2, it didn't pop the modal. This is totally a bug that's been in the code for 7.5 years that I've never come across personally. Feel free to open a PR at your leisure. I'll be out of pocket for about a week, but will check back when I'm back if you do end up opening a PR. |
@ArtSabintsev Yep, that's me. Can't believe you remember that far back 😄 It's nice to see all the iOS projects you have. This one has been especially useful. I just opened up a small PR with a fix for this issue. |
Thank you! Closing this one in favor of that one. |
We use Siren to force users to upgrade when we release breaking changes on our backend. We ran into an issue recently related to this and the
StoredSkippedVersion
setting.Our process is this:
When our app starts up, we hit this endpoint, and if
current version < minimum required version
, we set siren to useRules.critical
.The problem arises in step 2. We wait a few days so we can let users upgrade automatically, but it's possible that during this time they're are presented with the Siren option to skip the upgrade (since at this point, we're using
Rules.default
). Because the user may have skipped, when we setRules.critical
, the upgrade won't get enforced.I think when
Rules.critical
is in use (or more specificallyAlertType.force
)StoredSkippedVersion
should be ignored.The text was updated successfully, but these errors were encountered: