From 09bc540b80c299aae70430b83f04d0a7dc6c7fec Mon Sep 17 00:00:00 2001 From: Massimiliano Modena Date: Thu, 11 Jul 2024 08:01:43 +0200 Subject: [PATCH] feat(firebase-x): add consent mode (#4779) --- .../plugins/firebase-x/index.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts b/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts index ba784f01a..0a8fda3b8 100644 --- a/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts +++ b/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts @@ -118,6 +118,7 @@ export interface MessagePayloadAps { body: string; }; } + export interface MessagePayload { title?: string; body?: string; @@ -1032,4 +1033,13 @@ export class FirebaseX extends AwesomeCordovaNativePlugin { ): Promise { return; } + /** + * Set new V2 consent mode + * + * @param {array} consent array of consent + */ + @Cordova() + setAnalyticsConsentMode(consent: []): Promise { + return; + } }