firebase / firebase/firebase-admin-java

Trigger background message handler with data in payload

未關閉
#766 2 則留言 0 個 reaction 已指派 1 人 已指派給 @leolux 在 GitHub 檢視
api: messaging type: question
主要語言
Java
星號
620
分支
305
平均合併
3 小時 23 分鐘
30 天內合併 PR
1

描述

Regarding the documentation, the method "setBackgroundMessageHandler" of the service worker should be triggered when the payload contains data, not if the notification contains data:
```
messaging.setBackgroundMessageHandler(...)
```
How to send a web push message using firebase-admin-java that contains data in the payload that triggers this callback method?

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。