react-native-iap icon indicating copy to clipboard operation
react-native-iap copied to clipboard

[IOS 17] requestSubscripition infinite loop

Open psemsari opened this issue 1 year ago • 16 comments

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

  1. requestSubscription({sku: subscriptions[0]["productId"]}) in a button for example and an purchaseupdatedlistener function
  2. Press the button
  3. no purchaseupdatelistener fire and the buy pop up come over and over until you exit

psemsari avatar Nov 07 '23 01:11 psemsari

Same issue with version ^11.0.0-rc.7

pabloxoor avatar Nov 07 '23 20:11 pabloxoor

+1

buraksecer avatar Nov 08 '23 06:11 buraksecer

+1

abitorike avatar Nov 08 '23 14:11 abitorike

+1

muhammedesadkaya avatar Nov 08 '23 15:11 muhammedesadkaya

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 avatar Nov 08 '23 17:11 psemsari

@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 :/

buraksecer avatar Nov 08 '23 19:11 buraksecer

@psemsari have you physical device ios 17?? If you device have < 17 version. It will work :/

buraksecer avatar Nov 08 '23 19:11 buraksecer

is there any way to test it out on simulator?

siddhant-tradereboot avatar Nov 19 '23 15:11 siddhant-tradereboot

+1

ShwareAPI avatar Dec 13 '23 03:12 ShwareAPI

This is also affecting me. Would be great to get a PR in ASAP for this fix

TylerKitchens avatar Dec 20 '23 03:12 TylerKitchens

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

GaNiziolek avatar Jan 04 '24 17:01 GaNiziolek

Solved by building in Xcode instead of with command line

TylerKitchens avatar Jan 04 '24 17:01 TylerKitchens

Use original device or test build from TestFlight, it's help me

anatooly avatar Jan 17 '24 14:01 anatooly

+1

rodjosh avatar Mar 15 '24 14:03 rodjosh

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

rodjosh avatar Mar 15 '24 17:03 rodjosh

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.

anhtuank7c avatar Aug 23 '24 01:08 anhtuank7c