Home > database >  How to create 2 version of app (admin and user)
How to create 2 version of app (admin and user)

Time:03-22

Hi i'm a college student and i'm taking mobile development class (1 month in) so please tolerate me for my lack of knowledge. I want to make an android app that has 2 version (admin version, user version), how can i do that ?

do i make 2 app and then connect it to a database (firebase) and then make 1 app has access ? (how can i do this)

is there anywhere to read about firebase (database, auth, etc) preferably a book ?

what book is the best for mobile development (on my class we use android studio with java) ?

Thank you in advance

(sorry for my bad english)

CodePudding user response:

you can create 2 different apps or create a login screen that allows you to decide whether to log in as a user or as an administrator. After the choice, you can show a different view, based on the user who is logged in. I'm sorry, but I can't answer the second and the third question, as I use the documentation provided by firebase and I don't use books to learn how to program in java.

CodePudding user response:

To answer your questions, I would like to recommend you to separate the apps between Admin Version and User Version. By doing this way, you will prepare for a big picture for your system and it will make you easy in the future.

Yes, you can create 2 apps for 1 database (Firebase). You can refer image below:

Add new application

You can go to the Project Overview and add new application.
(Example, you already added an app for Admin, now you can add another one which is for User)

Once you finished add your new application to the Firebase, now you can develop your apps.
(google-services.json add to your new apps)

You can refer to this link
https://firebase.google.com/docs/database/android/start

You can refer to this link also (maybe will help you in coding later)
https://firebase.google.com/codelabs/firebase-android#0

  • Related