I have build an android app to send the user to user notification using Firebase Cloud Messaging for that I have included FCM Server Key in client code. Recently, I came to know about this that it is a security risk, that there could be malicious attack and the attacker can send the messages using that FCM server Key(if he comes to know about it). I am looking for the alternative for the same, can you guide me ?
I am using this tutorial Notification Tutorial