mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-23 10:32:52 +08:00
feat(firebase-x): add MessagePayloadAps prop (#4344)
* feat(types): add aps for MessagePayload * fix(types): fix firebase-x on ios
This commit is contained in:
parent
b6a44e3a8a
commit
dc1ee8c530
@ -112,18 +112,25 @@ export interface FirebaseUser {
|
|||||||
*/
|
*/
|
||||||
name?: string;
|
name?: string;
|
||||||
}
|
}
|
||||||
|
export interface MessagePayloadAps {
|
||||||
|
alert?: {
|
||||||
|
title: string;
|
||||||
|
body: string;
|
||||||
|
}
|
||||||
|
}
|
||||||
export interface MessagePayload {
|
export interface MessagePayload {
|
||||||
title: string;
|
title?: string;
|
||||||
body: string;
|
body?: string;
|
||||||
collapse_key: string;
|
collapse_key?: string;
|
||||||
from: string;
|
from?: string;
|
||||||
id: string;
|
id?: string;
|
||||||
messageType: string;
|
messageType?: string;
|
||||||
notification_foreground: string;
|
notification_foreground?: string;
|
||||||
sent_time: string;
|
sent_time?: string;
|
||||||
show_notification: string;
|
show_notification?: string;
|
||||||
ttl: string;
|
ttl?: string;
|
||||||
tap?: 'background' | 'foreground';
|
tap?: 'background' | 'foreground';
|
||||||
|
aps?: MessagePayloadAps;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @name Firebase X
|
* @name Firebase X
|
||||||
|
Loading…
Reference in New Issue
Block a user