Cannot connect to iTunes Store - should I be worried?
See original GitHub issueVersion of react-native-iap
4.4.2
Version of react-native
0.61.4
Platforms you faced the error (IOS or Android or both?)
iOS
Expected behavior
No error should occur since Iām checking for network access and then attempt to connect to the store. So unless the App Store is unavailable, I wouldnāt expect this to happen.
Is this normal? Should I expect this to happen from time to time?
Actual behavior
Iām getting error āCannot connect to iTunes Storeā
Tested environment (Emulator? Real Device?)
I havenāt been able to reproduce the problem. Iām seeing this in logs from the production app, and quite a lot of people seem to be getting this error.
Code
initiatePurchase = async () => {
try {
const netState = await NetInfo.fetch()
if (!netState.isConnected) {
return this.stores.ui.alert('Purchase failed', connectionFailureMessage)
}
await requestPurchase(fullGameSku, false)
} catch (error) {
logger.warn(error)
}
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:24 (4 by maintainers)
Top Results From Across the Web
If you can't connect to the App Store, iTunes Store, or other ...
If you can't connect to the App Store, iTunes Store, or other Apple services Ā· Check the system status page Ā· Make sure...
Read more >15 Ways to fix āCannot Connect to App Storeā on iPhone or iPad
To fix Cannot Connect to App Store on iPhone, 1. Retry connecting, 2. Check App Store servers, 3. Check internet connection, 4.
Read more >How to Fix "Cannot Connect to iTunes Store ... - Appledystopia
When you are repeatedly seeing āCannot Connect to iTunes Storeā, try signing in to the iTunes account screen with your Apple ID. After...
Read more >Why does it say Cannot Connect to iTunes Store? - Quora
It could be that your Internet connection is weak, try restarting your router and your computer. It could be that the iTunes Store...
Read more >Fix Cannot Connect to iTunes Store on Your iPhone/iPad
Part 1: Main Reasons Behind cannot connect to iTunes store issue on iOS devices Ā· 1. Disable/Enable the Parental Controls on your Apple...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@dan10gc and @anastely Uhm - you guys have kind of hi-jacked this issue š
@DavideValdo for iOS you can test with a sandbox account on local debug as long as you are using a real device and not a simulator. Also you donāt really need a sandbox account when testing locally, I believe apple will use your apple ID and allow it to be used as a sandbox account.