firebase / firebase/firebase-admin-java

Trigger background message handler with data in payload

Open
#766 2 comments 0 reactions 1 assignee Assigned to @leolux View on GitHub
api: messaging type: question
Dominant language
Java
Stars
620
Forks
305
Avg merge
3h 23m
Merged PRs (30d)
1

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.