capawesome-team / capacitor-firebase

⚡️ Firebase plugins for Capacitor. Supports Android, iOS and the Web.
https://capawesome.io/plugins/firebase/
Apache License 2.0
395 stars 102 forks source link

feat(analytics): add `setConsent` method #518

Closed robingenz closed 6 months ago

robingenz commented 10 months ago

Plugin(s)

Current problem

See https://github.com/capacitor-community/firebase-analytics/issues/173

Preferred solution

Add a setConsent method:

export interface SetConsentOptions {
    type: ConsentType,
    status: ConsentStatus
}

export enum ConsentType {
    ...
}

export enum ConsentStatus {
    ...
}

Alternative options

No response

Additional context

Docs:

Before submitting

robingenz commented 7 months ago

This feature is now available for testing via the following dev build:

npm i @capacitor-firebase/analytics@5.4.1-dev.269b7cd.1711121435