ArtSabintsev / Siren

Notify users when a new version of your app is available and prompt them to upgrade.

Home Page:http://sabintsev.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

update notification keeps showing regardless you have latest version installed

mobashir0155 opened this issue · comments

Using latest version of Siren
se.score.ios.Score
Apr 7, 2021
publish in 155 countries:


I posted this issue before but then i was using older version of siren, now i updated to latest version and still issue is same as in #366 . whenever i open my app even though i updated to latest version it keeps showing update notification and when open appstore there is already latest version installed.
Here's my setting in Appdelegate.swift:
```
let siren = Siren.shared
siren.rulesManager = RulesManager(globalRules: .annoying,
showAlertAfterCurrentVersionHasBeenReleasedForDays: 1)
siren.presentationManager = PresentationManager(forceLanguageLocalization: .swedish)
siren.wail { results in
switch results {
case .success(let updateResults):
print("UpdateType", updateResults.updateType)
case .failure(let error):
print(error.localizedDescription)
}
}


I tried this in the sample app in this project (e.g., changed the bundle ID to se.score.ios.Score and version to 2.0.2) and I can't recreate this issue.

Does this problem exist in the sample app?

No that's the problem in the sample app when running the latest version we don't see any notification it is working perfect. This problem is only in live version.

Makes no sense to me. The sample app replicates a real world scenario and it's my only way to test if something is truly wrong in the code. I don't think k I can offer and more help, since I can't reproduce it on my end.