From 898e0b8588f479aea228746c2b3e177c6066f757 Mon Sep 17 00:00:00 2001 From: Yevhen Date: Mon, 5 Sep 2022 20:04:10 +0300 Subject: [PATCH] feat(firebase-x): add message typing (#4282) --- .../plugins/firebase-x/index.ts | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts b/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts index a20bf3688..1744b9f5f 100644 --- a/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts +++ b/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts @@ -112,7 +112,19 @@ export interface FirebaseUser { */ name?: string; } - +export interface MessagePayload { + title: string; + body: string; + collapse_key: string; + from: string; + id: string; + messageType: string; + notification_foreground: string; + sent_time: string; + show_notification: string; + ttl: string; + tap?: 'background' | 'foreground'; +} /** * @name Firebase X * @description @@ -237,7 +249,7 @@ export class FirebaseX extends AwesomeCordovaNativePlugin { @Cordova({ observable: true, }) - onMessageReceived(): Observable { + onMessageReceived(): Observable { return; }