![](/img/trans.png)
[英]FIREBASE_MESSAGING: onBackgroundMessage not handling notification when app is on Background or Terminated
[英]Firebase messaging background handler not called when app is terminated (Flutter)
當應用程序終止時收到推送通知時,我正在嘗試更新我的應用程序的 flutter 應用程序的徽章計數。
如果應用程序在后台,Firebase 消息傳遞后台處理程序工作正常,但在應用程序終止時不起作用。
我已閱讀文檔:
在 iOS 上,如果用戶從 app Switcher 中滑動應用程序,則必須再次手動重新打開它,以便后台消息重新開始工作。
這是否意味着在 iOS 上無法使用 firebase 后台處理程序更新徽章計數(當然,通過您在處理程序中實現的邏輯,只需要調用處理程序)?
今天任何應用程序都這樣做,所以我想知道為什么 Firebase 消息傳遞不可能。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.