[ad_1]
Sending a message to a tool with Firebase Cloud Messaging requires that you simply specify the FCM server key. As its title implies, this key’s speculated to solely be utilized in trusted environments, as realizing it permits one to ship any message they need to all customers of the app. For that reason it’s not potential to safe ship messages instantly from one machine to a different machine with FCM.
As an alternative you’ll have to run code in a trusted surroundings, similar to your growth machine, a server you management, or Cloud Capabilities. Your client-side software code invokes the server-side code, that ensures the decision is permitted, after which calls the FCM API.
For extra on this see:
[ad_2]
