takecian / SwiftRater

A utility that reminds your iPhone app's users to review the app written in pure Swift.
MIT License
356 stars 42 forks source link

iTunes lookup api returns empty list #30

Closed NameX44 closed 4 years ago

NameX44 commented 4 years ago

Hi,

The iTunes lookup api returns empty list. If I try to add country code in url then it works. My bundle Id is good.

Doesn't work : https://itunes.apple.com/lookup?bundleId=xxxxx works : https://itunes.apple.com/fr/lookup?bundleId=xxxxx

Any idea about that ?

Thanks

takecian commented 4 years ago

Hmm, I tried it with my app, it worked without country code.

https://itunes.apple.com/lookup?bundleId=com.cocomoe.carp

I need some time to investigate.

NameX44 commented 4 years ago

Is your app available in every countries ? Mine is available in Europe only.

takecian commented 4 years ago

I have updated https://github.com/takecian/SwiftRater/commit/391c780a285573ab58ac342be255a61c1baeac9f and published 1.7.0. You can set country code,

SwiftRater.countryCode = "fr"

https://github.com/takecian/SwiftRater#country-code

Could you try this?

NameX44 commented 4 years ago

Hi, thanks for your fast response.

What if I support multi country but only en/fr store page ?

Why don't you use fetching from app id ?

Thanks,

takecian commented 4 years ago

Although it requires developers extra effort, I have added this feature. https://github.com/takecian/SwiftRater#app-id

You can try this with 1.8.0. Thanks.