Open G2Patrik opened 2 weeks ago
I have the same problem
Debugging this issue is a bit challenging for me at the moment. However, I asked ChatGPT for assistance, and this is the response I received. Could this be helpful?
The issue you're experiencing with in-app purchases in the TestFlight environment is likely due to some specific behaviors and limitations associated with TestFlight and Sandbox environments. Here are some steps and checks you can perform to troubleshoot and potentially resolve the issue:
Ensure Correct Sandbox Account Usage:
Reset Sandbox Account Data:
Check App Store Connect Configurations:
Review Subscription Handling Code:
Clear TestFlight Cache:
Check for Known Issues:
Review Apple Documentation:
Apple Developer Forums:
By following these steps, you should be able to identify and resolve the issue with in-app purchases not working correctly in the TestFlight environment. If the issue persists, providing detailed logs and steps you've taken when reaching out for support will be helpful.
Environment react-native-iap: 12.12.2 react-native: 0.72.12 Platforms (physical & simulator): iPhone 11 - OS version 17.4 /// iOS Simulator iPhone 15 Pro Max - OS version 17.4
Description Hello, I am trying to test the purchase of a subscription and an in-app purchase within my react native app. I have setup the necessary Sandbox account in App Store Connect, created a Store kit file in Xcode that I also synced with the products I created in the App Store Connect dashboard.
If I use Xcode to run the app on a physical device (after logging into the sandbox account), I am able to purchase a subscription/in-app product without any issues. If I purchased a subscription on the physical phone I can go into Settings > App Store > Sandbox Account Management and see the purchased subscription, change renewal rate, clear purchase history etc..
If I use the TestFlight build with a physical phone (logging in with the sandbox account) the in app purchases stop working correctly. After purchasing a subscription it is not shown in the Sandbox Account Management, so I am unable to cancel it. Upon trying to purchase another subscription the apple service keeps returning the same exact subscription that I "originally" purchased. How am I supposed to cancel that subscription if it not shown in the sandbox account subscription list? Adding a different sandbox account does not help either, trying to purchase another subscription returns the same subscription that I am unable to cancel. Is there a step in the TestFlight environment that I am missing on setup?
Expected Behavior Upon purchasing a subscription in the TestFlight environment on a physical device I should be able to cancel that subscription.
Any help would be appreciated.