We use Firebase Analytics to track usage of our iOS app. We found that Firebase was tracking usage data of development builds, thus corrupting our data by showing inflated numbers. To fix that, we wrote:
if debugBuild || installedThroughXcode || TestFlight || simulator {
AnalyticsConfiguration.shared().setAnalyticsCollectionEnabled(false)
}
This prevents our production data from being corrupted, but we'd still like data from TestFlight. Does Firebase offer a way to collect this data but partition it from production data?
We can't change the bundle ID because we need to test IAPs in TestFlight.