Firebase admin fetch cloud platform's usage information [closed] - firebase

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am making a software using firebase, this software has both user UI and Admin UI. An admin either activate, deactivate or remove certain users and do nothing. I want to add some more features to the admin UI. Something like being able to check my firebase account's usage, current plan and so on.
In simple words, is there any way to find below details of a single firebase project of mine using firebase-admin package?
Used storage bucket space and totally available bucket size, downloads and uploads
Firestore database write and read counts and maximum read/writes as per the current plan
The total number of users currently existing in my firebase auth
Cloud functions errors count
Being able to fetch these data in realtime would be more better and there maybe some kind of way for drawing graphs on the dashboard on the basis on these data.
I have initialized firebase-admin by calling admin.initializeApp(); and the code for activating and or deactivating users. What about the analytics ? Is it possible with firebase-admin ? I'd tried a lot Googling but didn't found a way...

The Firebase Admin SDKs currently don't provide any of the meta-information you are looking for. You can find the current list of functionality in the documentation.

Related

How to create e-commerce website with Firebase [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
Is it possible to create a website like Alibaba with Firebase? if so, what languages ​​or technologies should I use.
I know HTML, CSS, JavaScript and PHP
I think this is a very broad question, however, the official Firebase Quickstart Samples for Web is a really good place to start.
You can use several Firebase services such as:
Firebase Hosting which provides fast and secure hosting for your web app, static and dynamic content, and microservices.
Firebase Authentication which provides backend services, easy-to-use SDKs, and ready-made UI libraries to authenticate users to your app. It supports authentication using passwords, phone numbers, popular federated identity providers like Google, Facebook and Twitter, and more.
Cloud Storage for Firebase to store and serve user-generated content, such as photos or videos.
Realtime Database or Cloud Firestore to store extra data. Be sure to check the documentation about choosing the correct database for you.
Firebase guides are also a good place to find very well explained examples. Good luck!

is firebase ideal for a music streaming app. (Flutter) [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Almost eveything is done through the database, and so this got me thinking, if I have user accounts, is there a way to create/allow certain things from the database,to be user configurable. For example, say they favorited a song, though it is done through the server, it'll be user base and only affect them.
Is there a way to allow certain things from the main database to be user database as well.
Sorta new to this.
You can definitely use firebase for music streaming ,
for basic upload you can use firebase storage, and use the download link to stream using Audio Players plugin
if you want to compress audios to different qualities you can use Firebase Functions by adding your own javascript to it.
The rest is just data manipulation and user management. You can refer the firebase documentations for more.

How to sync firebase with android room local db? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I have an application that has a remote database(firebase) and local database(room). I get my data from firebase and save it in android room. Also, I use rxjava2 to do that. All posts is get from local database. Everything is okey until here. When I put new child to firebase, it doesnt appear in my application instantly. It is not put in local db. I know that I have to update my remote database every time such as every six hours. I had some researxch to do that. Work Manager and JobScheduler can be used but I dont know how to use that. Is there anyone that give me an advise?
WorkManager, part of Jetpack, is a library by Google, that handle deferrable work that requires a guaranteed execution.
You can read this blog to see if it covers your requirements. The documentation is an excellent starting point and there's a codelab that you can do to try the library itself available both in Java and Kotlin.
WorkManager uses JobScheduler when it runs on API Level 23+, for older Android versions (WorkManager supports API Level 14+) it uses AlarmManager and Broadcast receivers.

Python backend in firebase [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I am setting up a project in Firebase.
It will use:
Authentication, to authenticate users
Hosting for main html/js functions
Storage for app data files
Database for a small db
What I am currently missing is the availablity of a backoffice space into which I need to run python scripts that will gather files to save into Storage area with a cronjob.
Is this currently possible in Firebase, or am I missing something?
Firebase doesn't have a generalized backend solution for running arbitrary code. You can bring whatever backend you want that meets your needs.
If you want to stay in the Google ecosystem, look into using Cloud Functions to run python code that's triggered by events in your system. You can configure Cloud Scheduler to trigger a function periodically.
The Firebase tools built around Cloud Functions don't support python, only nodejs.

Are there any benefits to using settings.json instead of a mongodb collection? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
Are there any benefits to using settings.json instead of just storing this information in mongodb?
I would have thought that if you store it in a collection, then you can secure it by not publishing the collection in the first place. But you could also then build an admin page where you could update these details in your app, and it would be available straight away with no code reload.
In the meteor Chef's article on building a SaaS using Meteor (https://themeteorchef.com/recipes/building-a-saas-with-meteor-stripe-part-1/), Ryan Glover espouses the use of settings.json to store your Stripe keys.
Later on he uses it again, but this time to hold the details about the stripe plans. Wouldn't it be better to store this in a collection on mongodb?
Commonly, the settings.json file is meant to be used for non changing data like API keys and config info.
Considering that this data doesn't need to be manipulated, it is better to just use a settings.json file rather than a collection. If your going to use a collection than you have to go through the extra steps of pub sub.
With settings.json you have an opportunity to use different configuration for different environments (DEV, PROD etc.). Of course you can keep config information in MongoDB but then you need to save also environment information and have to pub/sub based on this.
Why would you do this, while you already have a mechanism for app configuration? In addition, you can set METEOR_SETTINGS environment variable.

Resources