I don't have any login for my app.
I want to use a unique identifier to store user details. I cannot use FCM ID or unique Identifier/GUID bcs once user will clear the cache or reinstall the app I will get a different FCM ID or unique Identifier/GUID.Now to the extend I know I've only option left that is to use IMEI as a unique identifier and save the app data against IMEI in DB, but I came across some posts saying rooted devices always have 000000.. IMEI.
Kindly suggest should I use IMEI or not. If yes then what I should do for rooted devices?
Take a look at this thread and see if this can help you: Is there a unique Android device ID?
It shows you how to get a unique Android ID.