Search code examples
androidcrashlyticscrashlytics-androidgoogle-fabric

crashlytics Answers not showing in Multi flavor app


We have an application working great with Crashlytic and Answers. We need to make a different flavour for this app. So, we have Gradle compilation working Ok, and making two different APKs for two different brandings. As soon as we changed the "applicationId" on build.gradle, the new flavor started to appear on Dashboard. But, when the app tries to log events in Answers, only the old flavor is showing the info. When we enable debugging in Fabric, the new one is showing "D/Answers: Analytics collection disabled" on logcat, but crashlytics is working ok. Do we need to make something else on the new flavor to get Answers working ? maybe a different API key????

Thanks a lot for your help.


Solution

  • You do not need a new API key.

    Fabric uses an API key and build secret to authenticate your apps to your organization. All of your apps use the same Fabric organization key and secret.

    https://docs.fabric.io/apple/fabric/settings/api-keys.html

    Fabric recognizes this as a new Android application (based on applicationId set in Manifest file), meaning that you have to enable Answers for that application separately.