I’m new in firebase, I want to use Firebase Remote Config to store configuration data related to my business logic and retrieve it from my HTTPS triggered Firebase Functions.
How can do that using TypeScript?
There is a REST API for Remote Config, but that one is focused on reading and changing the parameters not on consuming them.
In other words, the REST API allows you to programmatically do the same actions as you can do in the Firebase console, it is not a replacement for the mobile SDKs.
The firebase-admin node sdk has been updated to include this functionality. Update to the latest version and follow the documentation.
Related
I am trying to use Firebase to connect to the Buildfire plugins to manage, update, and retrieve data. Is this only possible for plugins created from scratch. How do I use firebase to connect to app data.
BuildFire is not built on a monolithic database. Furthermore, each plugin can a autonomous. It can save its data in any of the BuildFire built in databases or its own.
As for Google Firebase there are some existing Features/Plugins the use dedicated Firebase/Firestore instances to avoid a multi-tenant database for compliance reasons.
While BuildFire allows you to connect to firebase through a plug-in instance. You will sometimes need use your data outside of your plug-in for authentication, roles and permission. BuildFire provides the ability to integrate on the backend to your Firebase instance using the developer portal.
See more here https://github.com/BuildFire/sdk/wiki/Buildfire-Firebase-Integration
In conclusion, You probably would need to create your plug-in from scratch to use the database of your choice Firebase or anything else. And when you do so it will only have your plug-ins data.
I have created a firestore database.
I am on the Blaze Plan.
I am using a 3rd party api with its own nodejs client library.
What is the preferred method to use to fill this forestore database with data from this 3rd party api?
Firebase hosting or cloud functions?
Thank you!
There is no way to run custom code on the Firebase Hosting servers, so Cloud Functions are the only real option between these two. If you want your Cloud Functions to be callable through custom domain, you can do so by connecting them to Firebase Hosting. But the code for connecting your API will still be running on Cloud Functions in that case, you're just using Firebase Hosting to get a nicer-looking URL for calling them.
We are building a serverless platform consisting of Android and iOS apps build using React Native and on the backend we use Google Cloud Functions and Firebase. Given that some actions are handled by multiple Cloud Functions, we thought it would be a good idea to have the apps Publish to a Pub/Sub topic and then have the different Cloud Functions fire Subscribe events when the apps publish. Is it good practice to have a React Native app Publish directly to a Google Pub/Sub topic or should we have an HTTPS Cloud Function do the topic publishing?
If it is good practice for the apps to do the Pub/Sub, any tips on how to handle the credentials? There is a Node.js client but not a React Native one in particular. The main issue seems to be with the environmental variable you are supposed to set (e.g. export GOOGLE_APPLICATION_CREDENTIALS="/home/user/Downloads/[FILE_NAME].json").
Thanks!
If you are going to communicate with firebase (or any server) from the client´s device, best practice is so that you use clients authentication, and not some secure token for all.
There is the benefit, that firebase comes with client authentication.
I would look into 2 ways.
use firebase directly as a queue. it´s actually capable of doing that just fine and comes automatically with firebase authentication. (see https://github.com/firebase/firebase-queue)
use firebase cloud functions. The benefit is, authentication is automatically included if you logged in the user with firebase authentication. From there, you can write a simple cloud function to add data to your queue. (see https://firebase.google.com/docs/functions/callable)
I am currently designing a plugin for BuildFire that requires syncing to be done between a Microsoft CRM service and BuildFire. For this to work, I need to be able to update the BuildFire datastore from my own server that I will register with the CRM for the purpose of syncing these changes. I have only ever used the buildfire library provided in the SDK to communicate with the datastore from the client. Is there any way to communicate with the datastore from my server?
I see that there is an API key that is provided to my account. Is that something that I can use for this purpose, and if so, how do I use that with the existing library?
There currently is not server to server API to the DataStore. While fundamentally you could mimic the same REST API calls made by the client. However, there is no guarantee that these API's wont change on you. Since they are not the official Public API, no notice will be given about changes, no backward compatibility will be attempted, nor is there any versioning. That being said, there is a Public API that is being built for enterprise accounts. You may speak to your Technical Account Manager to learn more.
I have a requirement to deploy multiple version of the same API app where the client older application use the existing and the new clients use the new api app which is got more functionality.
Is there a way to achieve this with Azure API Apps?
I have an article that shows how to do Transparent Versioning using API Management in front of API Apps.
The basic idea is that you have a version parameter in a URL and then use the set-backend-service to change which version of the API to access.