After I published my app to the google play console. The google play support warns me that they found
security vulnerabilities for users
Leaked GCP FCM Server Keys
Your app(s) expose FCM server keys.
To address this issue, follow the steps in this Google Help Center article.
com.example.mypackagename.FcmNotificationsSender. AAAA0grk2WQ:APA91bGNcZOBZDFe16892r_c-.....2HMowk2VyaBWN_62b
Actually, I am trying to send notifications from one device to another through FCM into my app like messaging applications do. for that, I am using legacy FCM API. And I included the FCM server key directly to my app to send notifications between devices, which is not a good idea As written in Google Help Center article.
so, how I can fix expose FCM server keys? or if FCM does not support push notifications through devices directly then what is the best way to send notifications directly? Thanks!