📌  相关文章
📜  类型“AngularFireMessaging”上不存在属性“消息”-TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:11.204000             🧑  作者: Mango

代码示例1
constructor(private angularFireMessaging: AngularFireMessaging) {
this.angularFireMessaging.messages.subscribe(
(_messaging: AngularFireMessaging) => {
_messaging.onMessage = _messaging.onMessage.bind(_messaging);
_messaging.onTokenRefresh = _messaging.onTokenRefresh.bind(_messaging);
}