Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit dff5489

Browse files
Opt-Out / Opt-In for Crashlytics - GDPR #1249
1 parent 7418905 commit dff5489

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

docs/CRASHREPORTING.md

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ You will be prompted during installation of the plugin to enable either Crashlyt
99
Note that if you want to use Crashlytics, make sure your `firebase.nativescript.json` file has `"crashlytics": true` and `"crash_reporting": false`,
1010
then remove the `platforms` folder so these changes are picked up.
1111

12+
## Enabling Opt-In Crashlytics Collection (GDPR, anyone?)
13+
Since plugin version 8.3.0 you can disable Crashlytics collection by default, and enabled it at runtime.
14+
15+
Add [this](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/7418905a22661dfc3bf40d1a67a5e7254c89d54e/demo/app_resources/Android/src/main/AndroidManifest.xml#L32-L34) to your `AndroidManifest.xml`
16+
and [this](https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/7418905a22661dfc3bf40d1a67a5e7254c89d54e/demo/app_resources/iOS/Info.plist#L109-L110) to your `Info.plist`, so it's disabled by default.
17+
18+
You can then either pass `crashlyticsCollectionEnabled: true` in `firebase.init()`,
19+
or call `crashlytics.setCrashlyticsCollectionEnabled(true)` to enabled Crashlytics collection for this user.
20+
1221
## Configuration in the Firebase Console
1322
When setting up Crashlytics, select "This app is new to Crashlytics" and press "Next".
1423
Then the screen changes to something like "waiting for your first crash report".

0 commit comments

Comments
 (0)