![](/img/trans.png)
[英]Flutter FCM push notification not receiving on IOS with firebase_messaging: ^9.1.3
[英]Flutter and FCM (Firebase Cloud Messaging) onMessage, onResume and onLaunch not firing when notification clicked (package: firebase_messaging 7.0.0)
僅供參考,因為我發現這個問題是由我在調用 FutureBuilder 連接到 Firebase Cloud Firestore 之前調用 FCM 小部件引起的。
我將 FCM 調用進一步向下移動到小部件樹,然后按預期觸發 onMessage、onResume 和 onLaunch 回調。
雲消息傳遞 firebase_messaging 7.0.0 文檔推薦:
“應該在應用程序生命周期的早期調用配置,以便它可以盡早准備好接收消息。請參閱示例應用程序進行演示。”
但顯然不會太早!
如上所述,我將在 firebase_messaging GitHub 上鏈接到此內容,以便他們知道。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.