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; }