ArtSabintsev / Siren

Notify users when a new version of your app is available and prompt them to upgrade.
http://sabintsev.com/
MIT License
4.24k stars 407 forks source link

How to change Rule or Alert Type in iOS? #414

Closed Taimoor20 closed 11 months ago

Taimoor20 commented 11 months ago

I have integrated the latest version of this library in my iOS app. I could not find any option to change the rule or the alert type. By default, it is showing three options: 1. Update 2. Next time and 3. Skip

I jus want the update option which is for .force alert type but I am not able to change it. What can I do to change the rule to force?

Taimoor20 commented 11 months ago

I just find it. You can change the rule by adding this line:

Siren.shared.rulesManager = RulesManager(globalRules: .critical) ; Siren.shared.wail()