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!
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!
Done. Part of 6.7.0. Check this for details: https://github.com/EddyVerbruggen/nativescript-plugin-firebase/blob/bc9ee1b42ccd0474cf727c4b1eccb8d4d89d1eaf/docs/ANALYTICS.md#analyticssetanalyticscollectionenabled
Thank you again @EddyVerbruggen
A perfect solution as always! 馃憤 馃槂