Landon Carr
Landon Carr

Reputation: 11

Where should I store my FCM server key if not on client side for security? iOS?

I have been using FCM to deliver notifications that uses POST requests that require FCMs server key. How do I still send notifications without having the fcm server key client side for security reasons?

Upvotes: 0

Views: 682

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 598740

There is no way to securely send messages from one client device to another client device with FCM. You always need a trusted environment (such as a server that you control, your own development machine, or Cloud Functions) to do that, where you can enforce whatever "who can send to whom" rules you want.

For more on this, see:

Upvotes: 1

Related Questions