0

Docs says:

When a client app registers for FCM, it must specify which senders are allowed to send messages.

So, how can an app specify which senders it allows to send messages?

iDecode
  • 22,623
  • 19
  • 99
  • 186
  • Older FCM SDKs used to have a `getToken()` function where you could specify the senderId (see my answer [here](https://stackoverflow.com/a/42118836/4625829) for a few details), but the recent versions (using `FirebaseMessaging`), doesn't seem to have one. I haven't dabbled with FCM for a while, but my guess is that they put it somewhere in the initialization part of FirebaseMessaging. Might need to check if you could pass a FirebaseApp instance somewhere. – AL. Aug 17 '21 at 10:23
  • @AL. I get it but even if you don't specify the sender, you can still see the notifications, can't you. So, why the docs are saying, *... it must specify ...* – iDecode Aug 18 '21 at 05:36

0 Answers0