i understand but i want to use firebase also because few detail of student will be under there project bucket and the project bucket name i want to give is unique user id. so now tell me what should i do to set so that unique user id will be set and it will be stored as project bucket name. please help
Have you considered using Firebase authentication. This gives each user an uid. Using this with firebase rules provides good control over data read and write on your project.
i am telling this above extension because i have some data in realtime database thatwhy if i get user id i will set that id as project bucket of each students
First of all note that getting device id won’t work on Android 10 and higher devices because the application needs this permission: android.permission.READ_PRIVILEGED_PHONE_STATE which is granted to only apps signed with the platform key and privileged system apps.
So you won’t be able to get DeviceId, get Imei, get Meid, get SimSerialNumber, get SubscriberId and get Serial