Android - Firebase - Different types of Users Login

后端 未结 2 1052
情话喂你
情话喂你 2020-12-28 09:53

Aim

Allow different types of Users to sign into their respective interfaces

Description

  • Types of Users (3)

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-28 10:33

    All you need is a way to verify that the user is a Parent, Student, or Teacher when they first sign up for the app. After that you put a 'type' variable in their user info section of the Firebase Database (type = Parent, student or teacher). Then when they login, you retrieve their 'type'. And show the correct corresponding interface.

提交回复
热议问题