This question already has answers here:
Firebase analytics from remote REST API?
(3 answers)
Is there any api for dashboard analytics data?
(1 answer)
Closed 2 years ago.
I am looking for an automated way to pull down the some of the high level usages statistics via an API or persistent csv location with credentials.
You can see that the linked image that firebase provides a 'data-export.csv' file, under the Analytics menu .
Is there a way to do this, either directly from Firebase via an API, or via an integration with Google Analytics (I assume is the backend to firebase analytics), or via say a clever python script? Reason being is we want to share some key info in organisational business intelligence reports.
I have scanned the forums without a clear solution or no its not possible. Any assistance or examples of success (or failure) experiences and approach would be appreciated? Thx
Related
This question already has answers here:
Is it safe to expose Firebase apiKey to the public?
(10 answers)
Closed 3 months ago.
I've noticed that the API Key of Firebase can be easily accessed on the website I'm managing through url + firebase-messaging-sw.js. I've got mixed answers online when searching for this issue. Is this a security issue I should be concerned about? If so, how can I block access to this URL?
I've searched about the problem and got mixed kind of answers. So far, I don't know if it is a security issue, if blocking access to this URL will affect other things like notifications, or how would I block it in the first place.
The API key is safe to share. Puf has answered this in this stack overflow post.
The reason is that direct database access is the desired outcome in Firebase and security is implemented server side through the use of security rules.
This question already has answers here:
Is it acceptable to leave a database (Cloud Firestore) unsecured when no site login is required?
(2 answers)
Closed 3 years ago.
I am working with log-in log-out management, and it turns out that it's quite important to use the FirebaseAuth for all operations. But since only I have the service account key and only I can alter how the app is working, I'm wondering how someone can read or write in my database other than what I've programmatically given to them within the app. Can someone help explaining this to me? I would be really glad.
If your security rules allow access to unauthenticated users, then anyone with an internet connection will be able to read and write the entire contents of your database. It will be especially easy with the Firestore REST API.
A judgement of how "bad" that is for your project is entirely up to you to determine.
This question already has answers here:
Search by pattern on Cloud Firestore collection
(1 answer)
Google Firestore: Query on substring of a property value (text search)
(25 answers)
Closed 4 years ago.
My client has a project based on Firebase. They want me to add some functionalities to its core, and make necessary changes on client applications. One of the new functionalities requested is text-based search on Firestore documents. But this solution should be totally free.
According to Firebase docs I may use Algolia or ElasticSerach or an equivalent of these. But to use these services I should pay for the service, or rent a Google Cloud Platform or AWS deployment, or a standard dedicated server, and all of these solutions requires periodical payments.
So, in the end, I've 2 solutions.
1. Search on Client
Query all documents and perform the search on them.
2. Use Cloud Functions
Query all documents in cloud functions and return the search result.
Both approaches will increase the Firebase usage. This might cause limit excess and unintended invoices.
My question is, Is there any free search service? Do you have a better idea than mines? If you don't; which approach is better?
This question already has answers here:
Cloud Functions for Firebase trigger on time?
(3 answers)
Closed 4 years ago.
I’m making an app that requires every 3 hours to update a certain field of a document. How would I do that?
You're looking for something called "Cron Job".
The Idea behind it: You create an HTTP triggered method in Firebase Functions, and assign an outer service (for example: Google App Engine) that is responsible to send the HTTP request routinely.
There isn't any Firebase-built-in solution, but you could use Google App Engine / other Cloud utility available out there.
Here's an Excellent article for implementing one with Firebase Functions.
This one might help as well (Firebase Blog).
This question already has an answer here:
Firebase custom domain name for database
(1 answer)
Closed 4 years ago.
Let say i have a firebase db at https://vivid-fire-id.firebaseio.com/.
So the browser will try to connect to vivid-fire-id.firebaseio.com particular domain.
Is there way to add a custom domain from which the db is accessed from?
For eg: https://firebase.mydomain.com
This is required to make sure that firewalls do not create problem while access our application.
api gateway can be one of possible solution. Google search reveals lot of info on api gateways
Treat firebase as a microservice.