You can check this thread
Based on This StackOverflow alternatives of IME Sub GETUniqueID As String Dim JO As JavaObject Dim ID As String JO.InitializeContext ID = JO.RunMethod("getUniqueID", Null) Log(ID) Return ID End Sub #If Java import android.media.MediaDrm; import android.os.Build; import android.content.*...
But from many cases i have experienced this may return zero on phones that doesn't have Google service in it.
Best way to identify the user is to use firebase authentication, client sign in, grab the token, encrypt the token, send it to your backend and check the token to return the registered client id. Preventing multiple accounts creation can be a big hassle though..