firebase / firebase/firebase-js-sdk
Async task in onBackgroundmessage
- Dominant language
- TypeScript
- Stars
- 5.1k
- Forks
- 1k
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 37
Description
@corysimmons
thanks for reaching out. yes, that would be unsupported by the SDK ATM. I am not sure what is your exact use case, but one thing you could consider doing is to include whatever data in the data payload if it's applicable. Please file a feature request ticket If fetching data and display is an absolute need, we likely need a new API for that since the current one is non-async.
_Originally posted by @zwu52 in https://github.com/firebase/firebase-js-sdk/issues/3725#issuecomment-742840330_
**Problem statement**
In my case I want to track notification recieved by hitting a api (and waiting for its response )in onbackgroundMessage, but since only data message is received and not the event, I am not able to wait for the response of my api.
Any suggestions on how I can track notification recieved from sw?
@zwu52
Contributor guide
Assessment
This issue has not been assessed yet.