quickstart-js
quickstart-js copied to clipboard
anonymous function not written before payload while reciving the messege
messaging.onMessage((payload) while receiving the message in the index page by onMessage event the anonymous need to be written before calling payload in the round brackets.
@adilKhan72 can you please provide a bit more context? I'm not sure what you mean.
I'm able to run the messaging quickstart and receive both foreground and background messages without issue.