I am building a smart lock, which can be controlled through an Android mobile application. I want to add a new user, this new user will have a name,email and a password. I want to store these details in a database at firebase, using the data from the database I want to login using email and password from android app, also I want to view the list of all the users registered from the android app, update their details, delete a user. I just know how to create authentication using email and password only, but I cannot view them or delete them or change its credentials from the android app.
Later I have same problem. You can use Firebase Database. To add it you must open tools tab in android studio and connect app to firebase by instruction. Then you just write code. Look at this
.
As I say create app with "same" functional and at this link you can see my firebase helper class you can see all code that you need.
Related
I am working on an android application connected with firebase.
As we know that the api key and database name as being stored in strings.xml in apl file so they can be easily extracted.
As I told one of my friend his email-id and password for testing purpose.
The issue is that he was able to see all the data in the firebase realtime database by using the restAPI.
I had used sha1 but since the firebase is responding to the other links.
Is there any other way in which the firebase will respond to the request generated by the android app and not any web or ios.
Credentials for accessing Firebase are not platform specific. Once you know the credentials of a user, you can access the platform as that user.
For this reason you should never share your credentials with someone else, but instead give them access to your project with their credentials.
The simplest way to fix your problem now is to change the password of your account. After doing that, the other user will lose access within an hour.
The configuration data that is added to your Android app through google-services.json is just configuration data. It is in no way meant as authentication for your app. For more on this see Is it safe to expose Firebase apiKey to the public? and How to prevent other access to my firebase.
I want to use separate projects of firebase to access the same database but I want login of both apps are different if I add another app in firebase then it will use same authentication database (login ids), but I want only certain people to access the other app.
How can I do this?
I want to build an Android app that uses firebase authentication google sign in. But want to use a custom database(eg MySQL) which will store some video files.
I want to keep a track of the videos that my users will be watching.
Can i connect the firebase to my custom database so that it can hold data of the user's behaviors.
If you're asking if you can use Firebase Authentication, but use your own database, that's fine. You have the option of picking and choosing which parts of Firebase meet your needs. You need not commit to any part of Firebase that does not.
If you're asking if Firebase (both Realtime Database and Firestore) can act as a proxy for other databases, that's not possible.
I want to develop an android app for displaying and accessing some data. Is it safe for administrator to have login on the same user app so that he can add or remove data which will be stored on some server?
If not how should I do it?
I have created an Admin portal using firebase which shows the details of the users registered in my android app. As soon as they register in my app, the user is created inside the firebase Auth. Now I am concerned about the security of the site as my firebase API key is visible to everyone. So if they use that key, then they can easily access my firebase database and fetch the data using a simple javascript. So I wanted to know any solution to avoid this security problem???