FirebaseAnalyticsService

Firebase's lifecycle and identity, over a FirebaseAnalytics the consumer owns.

Before consent arrives, Firebase collects. start does not opt out, because Firebase's off-by-default switch is a manifest flag read at initialisation, before any Herald code runs:

<meta-data android:name="firebase_analytics_collection_enabled" android:value="false" />

Set that flag if you need a fresh install to collect nothing until the user has answered. setEnabled then flips collection on, and Firebase persists the choice across launches.

To keep the user id away from Firebase, register the provider without identity.

Constructors

Link copied to clipboard
constructor(firebaseAnalytics: FirebaseAnalytics)

Functions

Link copied to clipboard
open suspend fun flush()
Link copied to clipboard
open suspend override fun identify(identity: Identity)
Link copied to clipboard
open suspend override fun reset()
Link copied to clipboard
open suspend override fun setEnabled(enabled: Boolean)
Link copied to clipboard
open suspend override fun start()