Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IOS 17] requestSubscripition infinite loop #2603

Open
psemsari opened this issue Nov 7, 2023 · 15 comments
Open

[IOS 17] requestSubscripition infinite loop #2603

psemsari opened this issue Nov 7, 2023 · 15 comments

Comments

@psemsari
Copy link

psemsari commented Nov 7, 2023

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
@pabloxoor
Copy link

Same issue with version ^11.0.0-rc.7

@buraksecer
Copy link

+1

2 similar comments
@abitorike
Copy link

+1

@muhammedesadkaya
Copy link

+1

@psemsari
Copy link
Author

psemsari commented Nov 8, 2023

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 !

@buraksecer
Copy link

@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
Copy link

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

@siddhant-tradereboot
Copy link

is there any way to test it out on simulator?

@ShwareAPI
Copy link

+1

@TylerKitchens
Copy link

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

@TylerKitchens
Copy link

Solved by building in Xcode instead of with command line

@anatooly
Copy link

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

@rodjosh
Copy link

rodjosh commented Mar 15, 2024

+1

@rodjosh
Copy link

rodjosh commented Mar 15, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests