0

I m making a carpool app and I want to send notification to rider that I am leaving and I am coming to pick you so how can I do it ?

I tried doing it but it was happening manually and It want to fetch data from the google firebase database.

Egor
  • 39,695
  • 10
  • 113
  • 130
  • *firebaser here* **Sending** a message though FCM require that you specify the FCM *server** key in your code. As its name implies, this key should only be used in server-side code, or in an otherwise trusted environment. The reason for this is that anyone who has the FCM server key can send whatever message they want to all of your users. If you were to include this key in your Android app, a malicious user can find it and you're putting your users at risk. See https://stackoverflow.com/a/37993724 for a better solution. – Frank van Puffelen Jan 03 '23 at 17:25

0 Answers0