I have recently been learning Firebase for my salon app. I successfully use Firebase for authentication (Facebook, Google, Email) and now I am planning to continue to use Firebase Realtime DB for my app.
My app will cover member registration, reservation, services list, employees and transactions (treatment). Unfortunately, I am stuck and confuse at creating my data structure. I have no experience in NoSQL and I also could not find any complete db/data structure sample of one app (especially one that include transaction like e-commerce).
Please help give me any samples if you have or know so I can have better picture for my app. Thank you.
Related
I have developed an app which uses Firebase Realtime Database and want to publish it in google play store. I set database rules as read:true; write:true.
I don't care much about my database. It has not so much important data. I think nobody will even care about accessing my database and changing it.
I think even if some hacker writes some data in my database without using my app, I will be able to see it in my console.
My only concern is: can someone hack my whole firebase account just because I set the realtime database read and write rules true ?
To rephrase this question, does setting realtime database public put only database at risk or can it put my whole firebase account at risk ?
Security rules only deal with direct access to the database. They have nothing to do with anything else about your app or any Google account. You will just be on the hook for all the billing (all the reads and writes) for that database, regardless of where the access comes from.
I was wondering which one would be better, Authentication with Firebase or a database in Firebase. This is the general idea of my project, and I was wondering which one would be best:
I am creating an companion to a game, and this app can be registered to users, or a Clan which is a group of users. I need to group the users into their clans if they choose to do so, so I am guessing the database is better. But, Firebase Authentication seems like an easier process. Is a database better? Also, users will register online with my website, so it can be easier without a register process in-app.
Thank you for reading my post and hopefully for answering it!
-Braythor
You can have users Register/Login using the Firebase Authentication and when they do that you add their username to the database to be able to the group them by clan under different nodes in firebase.
Not sure if this is what you were asking, but you're right that using Firebase Authentication to have users register is easy, so this implementation would allow you to do that while also grouping them by clan in the database.
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.
Hi I'm new to android programming and here's what I want to do / my questions
I am starting with a simple app, letting users register and collect some info such as
username, password, age, etc
then later allow them to login and query for other users, ie, age <=30,
I google searched a bit and think google cloud datastore is what I want to go with, I want to pass data from the app to the database to establish a user database, which will be used later for queries.
My question is how do I do this, can someone point me to a link or tutorial? I read the google documents and they are not too helpful
Thanks
I started learning about Firebase for an android, but still can't get my head around some stuff, so I have couple of questions that I would love your help to answer.
1 - Can a user (or a hacker) know my firebase link from the app?
2 - if they did, will they be able to change my stored data without knowing my google email address associated with the database?
Thanks
Unless properly secured, anyone can read or write data to your Firebase database.
To secure your Firebase database you need to write Security Rules.
Firebase Security Rules live on a Firebase server and validate whether someone can access your data.
You also might want to check out this answer too for a beginner explanation.