React-native-iap: Cannot connect to App Store - Production App

Created on 11 Jul 2019  ·  9Comments  ·  Source: dooboolab/react-native-iap

Version of react-native-iap

^3.2.4

Version of react-native

0.59.8

Platforms you faced the error (IOS or Android or both?)

iOS - (Don't have android app yet)

Expected behavior

User clicks to purchase a subscription and it should work 100% of the time.

Actual behavior

User clicks to purchase subscription and it will work sometimes but most times they're getting "Cannot connect to the App Store"

Tested environment (Emulator? Real Device?)

Real Devices - Production

Steps to reproduce the behavior

Not sure how to make it happen, but I thought it was all working fine, then Apple rejected my app and said the IAP's weren't working, so I tested it again and they were.

One random time I tried to purchase and I got that "Cannot Connect to App Store" error, I closed and reopened the app and it was the same, then i turned the wifi off and it magically started working. I turned the wifi back on and it was still working, so must be something to do with the connection to the Apple servers.

Any help would be good, Thanks

ℹ needs more info 📱 iOS 🕵️‍♂️ need more investigation 🙏 help wanted 🚶🏻 stale

Most helpful comment

Note: the reviewers do not use production, they still use the Sandbox environment. Only apps downloaded from the App Store use the Production environment.

Would be great to add this to the docs. If I have time I will submit a PR for this.

All 9 comments

I've had a similar experience once. App got rejected for the same reason, then I requested for a review without any changes and then it worked. It seems the Sandbox service the reviewers use might have hiccups every now and then. I can't really confirm if that's really the case... But it looks like it.

Note: the reviewers do not use production, they still use the Sandbox environment. Only Apps downloaded from the App Store use the Production environment.

I'm having this issue every now and then and always assumed this was an issue on Apple's side. I guess our best option is to handle these issues gracefully.

Happening right now :(

I’m now also receiving this on production apps. Really random looking.

It's almost impossible to know if that's because a user canceled a purchase or really a problem with the connection or purchase. That error message is really horrible to work with. Not the fault of this package, but more on Apple's side.

edit:
Found this: https://support.apple.com/en-us/HT201400

Some checks users can do:

  • Check if they can login to the App Store with their Apple ID (first logout and then login)
  • Check if their date and time is set up correctly

Note: the reviewers do not use production, they still use the Sandbox environment. Only apps downloaded from the App Store use the Production environment.

Would be great to add this to the docs. If I have time I will submit a PR for this.

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

This may or may not be known already but I never had success connecting to the App Store (errorCode = 0, unknown) in the iOS simulator but it worked every time when testing on a real device.

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions.

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

Was this page helpful?
0 / 5 - 0 ratings