2
votes

Is there any API (Python, JS, ...) that can be used to generate and retrieve the Firebase cloud messaging server token?

The end goal should be the same as clicking the Add server key button in the project settings.

1

1 Answers

0
votes

There is no way to generate that key outside of the Firebase console.

Maybe have a look at the FCM HTTP v1 API which uses an OAuth based security model where the short lived tokens can be generated server side.