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:
Yevhen 2022-10-09 17:35:48 +03:00 committed by GitHub
parent b6a44e3a8a
commit dc1ee8c530
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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