Check if app is on TestFlight/Google Play Beta
See original GitHub issueThis is a feature request, please let me know whether it’s valid for the project or not.
Description
A simply function that returns true
if the app has been downloaded through TestFlight or Google Play Beta, e.g. isTesting()
.
The use-case is that I want to print out errors on screen if it’s on TestFlight and Build Configuration === 'Release'
but not on production (downloaded from store).
Issue Analytics
- State:
- Created 6 years ago
- Reactions:44
- Comments:18 (2 by maintainers)
Top Results From Across the Web
Detect when app is in TestFlight? : r/reactnative
Hi! Is there any way to detect when an app is being used from a device using TestFlight, as opposed to in the...
Read more >TestFlight - Apple Developer
TestFlight Beta Testing lets you invite users to beta test versions of your apps before you release them on the App Store.
Read more >Detect if mobile app was installed from Production Track or ...
Android - The app is uploaded to the play store on the Beta Track and once testing is completed it is promoted the...
Read more >Set up an open, closed, or internal test - Play Console Help
Open Play Console and go to the Open testing page (Testing > Open testing). Select the Testers tab. Expand the "Manage testers" section....
Read more >Beta Apps Tips & Tricks
welcome TestFlight makes it easy to test beta versions of iOS, tvOS, and watchOS apps and App Clips, then provide valuable feedback to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For those searching for a solution, here is the solution for iOS TestFlight. I am unaware of any google play solution.
In your Xcode workspace, create a file
ProdChecker.h
In your Xcode workspace, create a file
ProdChecker.m
Those are the files needed to call the objective-c functions from react native. The function above will determine if the app is on the App Store or on TestFlight.
And now the react-native implementation:
This way, you’ll be able to tell if the app is in production or not.
I expect that 1 year old issue will be brought to your attention 😃 which could be annoying but that’s the best I could do now. If I could do a PR I would do it in a first place 😃 unfortunately, I don’t know the right solution, especially for Google Play.