firebase / firebase/firebase-admin-java

Trigger background message handler with data in payload

Aperta
#766 2 commenti 0 reazioni 1 assegnatario Assegnata a @leolux Vedi su GitHub
api: messaging type: question
Lingua principale
Java
Stelle
620
Fork
305
Merge medio
3h 23m
PR unite (30g)
1

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.