firebase-admin-java icon indicating copy to clipboard operation
firebase-admin-java copied to clipboard

Trigger background message handler with data in payload

Open leolux opened this issue 2 years ago • 2 comments

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?

leolux avatar Feb 04 '23 13:02 leolux

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

google-oss-bot avatar Feb 04 '23 13:02 google-oss-bot