react-native-iap
react-native-iap copied to clipboard
[IOS 17] requestSubscripition infinite loop
Description
when i test a request subscription i have the pop up but when i succeed payment in pop up the pop up come and thats situation loop. no purchaseupdatelistener fire and the buy pop up come over and over until you exit
Expected Behavior
the pop up open, when payment it's done, purchaseupdatelistener need to fire
Screenshots
Environment:
- react-native-iap:
- react-native:
- Platforms (iOS, Android, emulator, simulator, device):
To Reproduce Steps to reproduce the behavior:
i'm on ios simulator
-
requestSubscription({sku: subscriptions[0]["productId"]})
in a button for example and an purchaseupdatedlistener function - Press the button
- no purchaseupdatelistener fire and the buy pop up come over and over until you exit
Same issue with version ^11.0.0-rc.7
+1
+1
+1
As it is write in Troubleshooting here, It isn't work on simulator you need to use physical device and i don't know why :/
For that's, i connected an iphone on developer mode with xcode and i used expo run:ios --device=devicename. Search here fro more info You need to be sure you are on the same wifi as your device and you authorize the connexion to your mac on Wan. it is important for expo
if you need more info i can help !
@psemsari thanks for information but we tried upload new application to apple store but we got rejected because this problem. I think so they use simulator during testing progress. What can we do about that :/
@psemsari have you physical device ios 17?? If you device have < 17 version. It will work :/
is there any way to test it out on simulator?
+1
This is also affecting me. Would be great to get a PR in ASAP for this fix
I have the same problem here
Related:
- https://github.com/dooboolab-community/react-native-iap/issues/2654
- https://stackoverflow.com/questions/45307674/sandbox-test-account-asking-password-repeatedly-for-ios-in-app-purchase/50385729#50385729
- https://stackoverflow.com/questions/11848714/in-app-purchase-sandbox-environment-loop/20913737#20913737
Solved by building in Xcode instead of with command line
Use original device or test build from TestFlight, it's help me
+1
For anyone experimenting this issue that does not have real device. You need to setup StoreKit and run the app by XCode not by console
https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/testing_in-app_purchases_in_xcode?language=objc
For anyone experimenting this issue that does not have real device. You need to setup StoreKit and run the app by XCode not by console
https://developer.apple.com/documentation/storekit/in-app_purchase/original_api_for_in-app_purchase/testing_in-app_purchases_in_xcode?language=objc
In my case, I also need to connect real device to run app from Xcode.