chirag04 / react-native-in-app-utils

A react-native wrapper for handling in-app payments
MIT License
890 stars 185 forks source link

Could not connect to iTunes store. #101

Open akaiworld opened 7 years ago

akaiworld commented 7 years ago

Today I started to constantly receive the "Could not connect to iTunes store." error. The app is already published. The published app doesnot include in app purchases. Now I am writing the new version the in app subscriptions. Trying this on the device as well as in the simulator.

loadProducts method works well. restorePurchases(( error, response ): error - Could not connect to iTunes store. response - restore_failed

When tried a week ago with the first not published at that time version - there was no such an error.

akaiworld commented 7 years ago

After multiple reloads iPhone asked me to enter itunes password. When I did the error stopped to appear. But previously such a dialog did not open up. Is that an error or what?

ryancoughlin commented 7 years ago

I am having a similar issue and I am always returned restore_failed after restoring purchases

ryancoughlin commented 7 years ago

@akaiworld A PR was merged to fix this issue. It sounds similar. Have you tried the latest version?

Ali-Ayyad commented 7 years ago

@ryancoughlin I tried the latest version, upon purchase I got "Cannot connect to iTunes Store" , with an undefined response.

adishua commented 7 years ago

+1

adishua commented 7 years ago

Got the same issue on a simulator, but it worked well on a real device. From what i've read the same behaviour goes when writing native (swift / objective c).

asleepace commented 6 years ago

Any update on this, have app in production and upgrades are failing?

superandrew213 commented 6 years ago

@Asleepace what do you mean by upgrades? Upgrading in app subscriptions or upgrading your app and getting rejected?

I don't get this issue in production only in sim/dev/testflight.

asleepace commented 6 years ago

Upgrading via in app subscriptions, it seems to load all the products fine but when I tigger the InAppUtils.purchaseProduct method, it just comes back with "Could not connect to iTunes store"

superandrew213 commented 6 years ago

@Asleepace check https://github.com/chirag04/react-native-in-app-utils/issues/122. Sounds like your issue. I'm having the same problem when upgrading/downgrading subscriptions.

asleepace commented 6 years ago

@superandrew213 thanks, it seems that it works when on app store, but not with the release build of my app.

superandrew213 commented 6 years ago

@Asleepace thanks for letting me know! I had a feeling that these errors wouldn't show on App Store downloads.