Nativescript-plugin-firebase: Analytics Opt-Out

Created on 20 Aug 2018  路  5Comments  路  Source: EddyVerbruggen/nativescript-plugin-firebase

Hello Eddy,

is there support / a best practice for Analytics Opt-Out?
Firebase Docs has got it covered: https://firebase.google.com/support/guides/disable-analytics

Thank you for you awesome plugin!

Android Analytics enhancement iOS

All 5 comments

Hey Martin,

You're welcome. And thanks for the question.

If you want to permanently disable analytics you can do what that page suggests; add those lines to app_resources/andrid/androidmanifes.xml (and the same for the iOS plist).

However, if you want to toggle those at runtime then this plugin needs to be extended with the code that's also mentioned on that page. I could add a firebase.analytics.enabled(boolean) method.

So please let me know if you need permanent disabling or runtime disabling, or both.

Thank you for the quick response Eddy.

Permanent disabling is easy enough the way that you've described I do believe. But that's not really an option in the most cases I guess:

In order to comply with GDPR and ePR it will be required to offer opt-out functionality when using analytics in Europe. (At least for my understanding.)

Therefore it would be very beneficial for the plugin if it would support runtime toggling. It would be really awesome if you could add it.

Sure sounds like that's the best way to do it. Thanks for your input!

Thank you again @EddyVerbruggen

A perfect solution as always! 馃憤 馃槂

Was this page helpful?
0 / 5 - 0 ratings