Skip to content

I can't send firebase cloud messages #317

Answered by mobizt
beynelmilel asked this question in Q&A
Discussion options

You must be logged in to vote

When you set the topic using fbdo.fcm.setTopic, it works only for Firebase.sendTopic.

Both Firebase.sendMessage and Firebase.broadcastMessage required device token to send message to, calling fbdo.fcm.addDeviceToken to add device token.

Without device token adding, Firebase.sendMessage will give "unknown error" and Firebase.broadcastMessage will give "bad request".

Replies: 5 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by mobizt
Comment options

You must be logged in to vote
4 replies
@mobizt
Comment options

@beynelmilel
Comment options

@mobizt
Comment options

@beynelmilel
Comment options

Comment options

You must be logged in to vote
1 reply
@beynelmilel
Comment options

Comment options

You must be logged in to vote
2 replies
@beynelmilel
Comment options

@mobizt
Comment options

Comment options

You must be logged in to vote
2 replies
@mobizt
Comment options

@beynelmilel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants