Skip to content

Commit

Permalink
feat(firebase-x): add MessagePayloadAps prop (#4344)
Browse files Browse the repository at this point in the history
* feat(types): add aps for MessagePayload

* fix(types): fix firebase-x on ios
  • Loading branch information
osben committed Oct 9, 2022
1 parent b6a44e3 commit dc1ee8c
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions src/@awesome-cordova-plugins/plugins/firebase-x/index.ts
Expand Up @@ -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
Expand Down

0 comments on commit dc1ee8c

Please sign in to comment.