I am currently trying to add auto-renewable In-App purchase subscription choices (one monthly and one yearly) to my app using SubscriptionStoreView and the modifiers .onInAppPurchaseCompletion, .subscriptionStatusTask, and .manageSubscriptionsSheet. I know that I can test this via Xcode with the .storeKit configuration file and that seems to be going pretty well. However, I would like to be able to test via TestFlight also. There are several Apple Developer Forum posts that seem to indicate that this is possible by setting up a sandbox user id in App Store Connect and then going to Settings -> App Store -> Sandbox Account (on my phone) and entering that sandbox user id that I just set up. Some posts suggest that this is presumably so that TestFlight will use that sandbox id when my app is running and not my personal user account when trying to buy subscriptions.
Unfortunately, underneath where it says Settings -> App Store -> “Sandbox Account”, it also says “This account will only be used for testing your in-app purchases while developing locally. Your existing App Store account will be used for TestFlight apps.”
So, it would seem that we cannot use a Sandbox Account for TestFlight if I’m understanding this correctly. I’m also assuming that “locally” from the above statement means that either my phone needs to be plugged into my Mac OR that I’m using Xcode and a .storekit file to test. That’s fine for my initial testing but a big problem for some of my TestFlight testers because they do NOT have a Mac.
So now for the big questions… How are we supposed to have our testers be able to test via TestFlight then? Is it even possible? If so, what are the steps to set this up?
Sorry but this is so confusing and Apple’s doc does not make this any clearer. Does anyone know how this is supposed to work with TestFlight? I’m not really comfortable just testing in Xcode and then hoping it works when it gets released in App Store. TIA.