question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot connect to iTunes Store - should I be worried?

See original GitHub issue

Version 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:closed
  • Created 3 years ago
  • Comments:24 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
AdamGerthelcommented, May 25, 2020

@dan10gc and @anastely Uhm - you guys have kind of hi-jacked this issue šŸ™ƒ

1reaction
dan10gccommented, May 23, 2020

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found