Search code examples
androidfirebasecrashlyticscrashlytics-android

How to set up multiple app users in Android for Firebase Crashlytics, including compliance GDPR?


I am working with Firebase for the first time and new with the concept. I am trying to set up the Firebase Crashlytics for multiple app users. My app generates for every handheld specific id that is used for multiple purposes.

Question:

  1. How to implement the handheld id to the Firebase Crashlytics in my app?

Reason:

When using Firebase Console, I would like to see the handheld id and base on that I know who has some problem with the app.

Question:

  1. How to set the Firebase Crashlytics in my app, so when my app crash, the log will be stored locally?

Reason:

When handheld does not have an internet connection and my app crash, I would like to be able to analyse the log or resend the log to the Firebase Console.

Question:

  1. How to use the Firebase Crashlytics, so the app compliance GDPR?

Thank You.


Solution

  • Fabric/Firebaser here -

    1. Crashlytics support custom logging, which will let you associate a crash report with a particular ID.

    2. Crashlytics will always store crashes locally and attempt to send them up next time the app relaunches. If it's unable to send them up it will cache them and continue trying when there is a better network connection. If you're controlling Crashlytics data collection manually via setCrashlyticsCollectionEnabled, you can use methods like sendUnsentReports() and deleteUnsentReports() to control the behavior.

    3. Check out Firebase's privacy and security page for more information about GDPR compliance. For Crashlytics, you can log unique user IDs to associate users with each crash session sent to your Crashlytics dashboard, and then you can send Firebase support a GDPR data deletion request with the associated ID to make sure you're wiping out your data.