IMEI in Android 10
How are people going around this?
Random ID generator
Mobile Device Management
What we recommed: Token based authentication
How to use it in TotalCross
public boolean doLogin(username, password) {
String tokenValue = doLogin(username, password);
String sqliteRequest = "insert into userSettings values(?, ?)";
PreparedStatement ps = dbConnection.prepareStatement(sqliteRequest);
ps.setString(1, "token");
ps.setString(2, tokenValue);
ps.executeUpdate();
ps.close();
User user = getUserResources(tokenValue);
if(tokenValue != null) {
return true;
} else {
return false; // Wrong credentials, invalid login or password
}
}Last updated
Was this helpful?