EddyVerbruggen / nativescript-plugin-firebase

:fire: NativeScript plugin for Firebase
https://firebase.google.com
MIT License
1.01k stars 444 forks source link

FCM - Usage without google-services.json #1605

Open hrueger opened 4 years ago

hrueger commented 4 years ago

Hi, I would like to use the plugin for receiving FCM push messages, but I can't use the google-services.json file as the values need to be dynamic. They should be fetched from a REST API at runtime. Is this possible?

emog commented 4 years ago

Please describe what you want to achieve with more details please. It's weird scenario which you are talking about.

hrueger commented 4 years ago

Sorry. I'm building a platform which is kind of similar to Nextcloud. Admins can install it on their server and then they can manage files via a web interface. I'm building a mobile app for this with NativeScript. Now I want to send push messages to the mobile app. Of course, every admin needs their own google fcm credentials, which he enters in the web interface. I don't want to build the mobile app for every instance of my platform with the different credentials (which are in the google-services.json file). Instead, I want to build it without google-services.json and have the users enter a url. Then, the NativeScript App fetches the credentials from this URL.

Does that make sense?

According to this question and the article here, it looks possible.

hrueger commented 4 years ago

Any update on this?