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 fix the error "Error retrieving App Store data as the JSON results were empty"? #387

Closed iskalinov13 closed 2 years ago

iskalinov13 commented 2 years ago

If you're experiencing a problem integrating Siren into your app, please provide the following information when posting a new issue:

I alway get the same error: [Siren Error] Error retrieving App Store data as the JSON results were empty. Is your app available in the US? If not, change the countryCode variable to fix this error.

let siren = Siren.shared siren.apiManager = APIManager(countryCode: "KZ") siren.wail { results in switch results { case .success(let updateResults): print("AlertAction ", updateResults.alertAction) print("Localization ", updateResults.localization) print("Model ", updateResults.model) print("UpdateType ", updateResults.updateType) case .failure(let error): print(error.localizedDescription) } }

ArtSabintsev commented 2 years ago

Please make sure your bundleID works in the sample app first.