Our app is available both on the App Store and Testflight. We have a working subscription system with subscriptions that are linked to user accounts in our app.
We would like to disable subscription purchases for Testflight releases. So users with an active subscription can use this subscription in Testflight, but users cannot sign up for a subscription in Testflight. Premium features would only be accessible to users with an active subscription.
I think we can do this technically using something like this: let isTestFlight = Bundle.main.appStoreReceiptURL?.lastPathComponent == "sandboxReceipt"
We are wondering if this is:
a) Allowed by Testflight guidelines?
b) Allowed by App Review guidelines?
c) If there is even a better way to do this?