Any way to tell the difference between a test app (such as one on TestFlight) vs a production one (deployed to the App Store/Google Play)

Please provide the following:

  1. SDK Version: 39.0.0
  2. Platforms: Android & iOS

I have an API that I am using for services within my app, and I want to be able to use the testing/staging version of the API while I’m either in local development or on a build that isn’t live on the respective app store. I have tried __DEV__ and that appears to only work for local development. So my question is whether there’s another way to determine where the app is being run from (TestFlight vs App Store)?

Hey @tsorensen64, release channels would probably be your best to handle this use case since Constants.appOwnership doesn’t differentiate between testflight/app store builds.


1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.