From dc1ee8c5306196562a0013924014a0d7adfa5059 Mon Sep 17 00:00:00 2001 From: Yevhen Date: Sun, 9 Oct 2022 17:35:48 +0300 Subject: [PATCH] feat(firebase-x): add MessagePayloadAps prop (#4344) * feat(types): add aps for MessagePayload * fix(types): fix firebase-x on ios --- .../plugins/firebase-x/index.ts | 27 ++++++++++++------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts b/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts index 1744b9f5..95014fad 100644 --- a/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts +++ b/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts @@ -112,18 +112,25 @@ export interface FirebaseUser { */ name?: string; } +export interface MessagePayloadAps { + alert?: { + title: string; + body: 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; + 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'; + aps?: MessagePayloadAps; } /** * @name Firebase X