diff --git a/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts b/src/@awesome-cordova-plugins/plugins/firebase-x/index.ts index 1744b9f5f..95014fade 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