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?
Related
I am making one Android app where I am using Firebase Realtime Database. However, I want user to give choice to either use my firebase database or their own. Is this even possible? Is there way to configure android app such that user can use their own Firebase-Database? Maybe by using their own API keys/project-url or something?
I am looking for implementation like Google-Drive API, where one can store content to users own Google Drive.
Currently, I can think of only one possible way to achieve this : user compiling their own app with their own google.json file.
You would have to get them to provide all the data that would be passed to a call to initializeApp via FirebaseOptions, then use the returned FirebaseApp instance for all database access.
They would also have to configure Firebase Authentication and security ruels so they don't have a publicly readable and writable database instance, and your app would have to manage the user sign-in.
This is all going to be a non-trivial amount of work for both you and the user, if you choose to implement it.
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.
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 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???
i'm creating an android app, which requires some authentication system. I want to have 3 options to log in users: mail&password, facebook login and anonymous access (in case of anonymous i'll create some kind of anonymous account, so user'll be able to give his credentials later and secure his account with 'normal' password).
I'll also have my own webservice for this app. Webservice is in fact the most crucial part and android app will just show data from WS and put some new data on it.
I'll be using Firebase for handling notifications.
My question is: should i use Firebase authentication in this scenario or maybe it's better to stay with own authentication system? If i use Firebase i still need to have users in my database (webservice requires some info about users).
Is firebase authentication good choice for project like that?
Even in the case of Firebase where we use firebase authentication and the firebase database together, only a few details of user(user id, login email or number, provider details etc) are available under the Authentication tab. The rest of the details we receive after login and other custom user information we collect from the app have to be saved in the Firebase database.
So even if you have another Web service instead of using Firebase Database, you can use Firebase Authentication. There are definitely great advantages if you use Firebase Authentication.
Save time on developing Webservice methods for authentication :
Instead, you can just have a method to store user information after the user authenticates with Firebase. Also, there is considerable time saved since you can avoid developing server-side methods for different kinds of token verification in case you want to add social logins like Facebook and Google.
All that will be handled efficiently with Firebase.
Detailed Analytics: Also with Firebase authentication, you can also get good analytics and demographic information of users.
You don't have to use Firebase authentication in order to use FireBase Push Notifications, Invites, etc.
That's one of the beauties of Firebase; you can choose which service to use.
Since everything is built already, I would continue to use your own Auth system
You can save all users, and you can authenticate with Google, Facebook, only email.
It's like a database online and it's easy to connect with the same at Android Studio and after you can login with the users.