soran_glekovec
soran_glekovec

Reputation: 103

Is Firebase Cloud Messaging authentication necessary?

I have server in php with custom user authentication. I'm trying to create chat with Firebase, and after reading docs I'm still confused id I need to authenticate my users for Firebase, and if so should I do it with signInWithCustomToken?

Any other tips on how should I proceed are welcome. Thank you.

Upvotes: 2

Views: 4053

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 599401

There is no need to authenticate users for them to receive FCM messages.

You do need to pass the FCM Server key to send messages to devices however. You can see an example of that in the Authorization header here: https://firebase.google.com/docs/cloud-messaging/send-message

Upvotes: 6

Related Questions