I know this question has been asked too many times. But I have something to propose and need to know if it makes sense.
I am already using Firebase database.
All I need a server is to make a POST call to Firebase messaging. But what if the app makes the same POST call?
Now I understand that there is a security risk aligned with this model. Apps can be decompiled and the server key can be extracted. But as I am already using Firebase database, what if I keep the key in my database and request when I need it.
Please let me know if this sounds good or does it have any drawbacks other than one increased call to my database.