Is it possible to detect at runtime that an application has been installed through TestFlight Beta (submitted through iTunes Connect) vs the App Store? You can submit a single app bundle and have it available through both. Is there an API that can detect which way it was installed? Or does the receipt contain information that allows this to be determined?
Ios – How to tell at runtime whether an iOS app is running through a TestFlight Beta install
iostestflight
Best Answer
For an application installed through TestFlight Beta the receipt file is named
StoreKit\sandboxReceipt
vs the usualStoreKit\receipt
. Using[NSBundle appStoreReceiptURL]
you can look for sandboxReceipt at the end of the URL.Note that
sandboxReceipt
is also the name of the receipt file when running builds locally and for builds run in the simulator.