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

Siren popup shows even though there's no newer version available #412

Closed itamargilvybe closed 1 year ago

itamargilvybe commented 1 year ago

I have a SwiftUI app and Siren triggers an alert even when my app is updated to the latest AppStore version.

Here's my code which I implement in AppDelegate's didFinishLaunchingWithOptions:

let siren = Siren.shared
        siren.presentationManager = PresentationManager(alertTitle: "Update to the latest version", alertMessage: "To get the latest features", updateButtonTitle: "Update)
        siren.rulesManager = RulesManager(globalRules: .critical, showAlertAfterCurrentVersionHasBeenReleasedForDays: 0)
        siren.wail()

I'm running on Xcode 14.3, with iOS 16.0.

ArtSabintsev commented 1 year ago

Hi - what's the latest version? You provided the date not version number.

Thanks!

itamargilvybe commented 1 year ago

It's 7.0.3; so I added a 1 day delay showAlertAfterCurrentVersionHasBeenReleasedForDays: 1 and it seems to work fine now. Thank you!