Hello,
I'm experiencing an issue with subscriptions in my app, which hasn't been approved yet.
I created the subscriptions in App Store Connect and can successfully sync them using a StoreKit file in Xcode. When I test the app on my device with this file, everything works fine – the subscriptions load, and I can simulate purchases without any issues.
However, when I submit the app to TestFlight or even when I test it on my device without the StoreKit file, the subscriptions are not found by their IDs, even though they are marked as Ready to Submit in App Store Connect.
If my StoreKit file can sync with App Store Connect, why am I unable to retrieve the subscriptions directly when compiling the app without this file? This makes it challenging to understand if the subscriptions are properly set up in the App Store.
Any help would be greatly appreciated!
I created the subscriptions in App Store Connect and can successfully sync them using a StoreKit file in Xcode. When I test the app on my device with this file, everything works fine
When StoreKit Testing in Xcode is enabled, StoreKit uses the information you configure in the active local StoreKit configuration file.
However, when I submit the app to TestFlight or even when I test it on my device without the StoreKit file
When it is disabled, StoreKit runs in the sandbox (during your tests) and uses the information you configure for your in-app purchases in App Store Connect.
App Review and TestFlight use the sandbox environment when reviewing your in-app purchases and testing your in-app purchases, respectively.
why am I unable to retrieve the subscriptions directly when compiling the app without this file?
You need to inspect your code to confirm that the product identifiers you are fetching are the ones configured for your app in App Store Connect. You can do that using log statements or breakpoints. For more information, see Setting breakpoints to pause your running app.
Implementing in-app purchases requires a Paid Applications Agreement. Confirm you sign the latest Paid Applications Agreement and complete all the financial agreements in App Store Connect. For more information, see Overview for configuring in-app purchases.