Picture of react redux firebase documentation
I see how they included the presence parameter in the rrfConfig. Does this mean I need to create a presence collection on cloud firestore. Also, how would I actually implement this in react so that I can retrieve the online status of users. I am confused on how to structure this in my react project. Thanks a lot for the help.
The presence feature in react-redux-firebase wraps the similar feature in the Firebase Realtime Database, which depends on this database's web socket nature. This feature is not natively available in Cloud Firestore, due to the complete different (and connectionless) wire protocol that Firestore uses.
So you'll need to either use Realtime Database to use this feature in react-redux-firebase, or wrap it in Cloud Firestore as shown in the Firebase documentation on implementing presence in Firestore with Cloud Functions and Realtime Database.
Related
I followed some Firestore tutorials and I didn't need to build an API, instead, Firestore connected with the front end and offered features similar to an API. Is this the optimal way to use Firestore? Should I be building an API on top of my front end app to connect to Firestore?
I'm new to using Firestore and NoSQL but I want to quickly build an MVP that's scalable. I'm used to building a python (Flask) API and a PostgreSQL DB, but I want to do something simpler and quicker. Any insight into how Firestore works will help.
If I understand correctly, you would like to know if you should create a back end API to request/pass data between your front end and Firestore.
You do not need your own custom API to connect with Firestore. Googles SDK connects directly from your front-end to your Firestore. Here is their quick start guide.
To make this secure, you will need to set good security rules as documented here.
I have a React app with firebase's firestore database. I want search functionality in my app. I wanted to integrate Algolia search. But the problem occurred when I saw that firebase's free Spark Plan does not allow requests to external APIs. So I can't integrate Algolia.
I will be highly appreciated it if anyone tells me how can I integrate search functionality to my app using the firestore database(It should update and add data when my firestore data changes or adds)
I have the intention to deploy a small react single page app for educational purposes and wanted to test something new. Firebase seems like a good option especially because it offers free tier. However there is something that is bothering me, the free tier's cloud functions only support node.js 8 which is obsolete . I plan to use the NoSQL database and hosting options offered by firebase. Correct me if I am wrong but if the CRUD operations are made by a react hooks there is no node.js involvement and therefore no cloud functions are needed? Basically the CRUD is done by the user's browser because he runs the react app .js files and this means that I can safely use the free tier?
If you are just performing queries directly to Firestore or Realtime database from your web app code, then you don't need Cloud Functions at all, and do not need to enable billing on your project. This is should be easy to try for yourself - simply follow the instructions in the documentation for the database you've chosen.
I am beginner on firebase and need some help with project decision. I am building a react native app for someone and for the database I was thinking of using firebase, but when I was going through the docs I realized that firestore offers Backend Service, does this mean I don't have to use any framework for the backend. I was originally planning to use Django but if firestore provides backend service, it will provide lot more ease to the project. Can anyone give me an explanation on this ?
You can indeed directly connect your ReactJS application to Cloud Firestore, bypassing the need for your own server. To secure the application you'd use Firebase's server-side security rules, which allow you to control who can read and write what data. This is of course extra important, since you're opening up the database for direct access from the client applications, and the rest of the internet.
To access Firebase from React Native, many developers use the react-native-firebase library, which wraps more Firebase services than the JavaScript SDK does.
We are integrating Firebase with our android(Xamarin Android) and windows(WPF) flavor of same application.
We chosen Firebase just to collect analytics information(User Events, User Properties and Crash logs and all).
For android we have used Xamarin.Firebase.Analytics nuget package. Now we are able to view user analytics data from Firebase dashboard.
But for windows, there is only one option to integrate Firebase which is using Firebase REST api. But that integration mainly creates Firebase database and it will update the sending data. But I am not sure how to get user analytics information out of it?
We thought of using common analytics tool for both android and windows so that we are looking for possible option to get analytics data from Firebase database.
Please help me to view analytics data in Firebase analytics dashboard from data present in Firebase database?
We are in analysis stage, alternate solution to get anlytics data for WPF application is also useful. Thanks.
There is no connection between the Firebase Realtime Database and Google Analytics for Firebase.
If you need such a connection, you will have to code it yourself with the available APIs. Note that there is only a Firebase SDK for Analytics on iOS and Android, so you'll have to use one of those if you go this route.
Alternatively, consider writing your analytics data straight to BigQuery, and analyze it there.