on 09-30-2014 7:24 PM
Hellow Guys,
There are something important about SUP that is the offline Loggin.
I want to obtain all users name and passwords but i dont know how to do it.
Is is possible? How do you do the offline Login?
Thanks in Advance
Laguerta
Hi Daniel,
In general, for offline based apps, you should first download whole/required data on the device(s) against respective user(s) , so that if there is no network, user can perform transactions being in offline mode (those transactions will go and add into device's pending items queue) and once there is internet connection available, all pending items will get start synchronizing with back-end.
There is a way to store username and password into client local database maybe data vault.
I want to obtain all users name and passwords but i dont know how to do it.
What exactly is your requirement in above statement? Can only one user login to one device or are you allowing more than one user to login to the same device?
Regards,
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Daniel,
You can use the offlineLogin API if you want to login to app when there is no connectivity.
For the first time the user should log in with internet connectivity, thereafter if there is no network you can call offline login API.
Ex.
//If there is no connectivity
try {
ConnectionProperties connProps = app.getConnectionProperties();
connProps.setFarmId("0");
connProps.setServerName("10.10.10.10");
connProps.setPortNumber(5001);// MBS
ReaderDB.setApplication(app);
LoginCredentials loginCredentials = new LoginCredentials(
"Midhun","123456");
connProps.setLoginCredentials(loginCredentials);
ReaderDB.offlineLogin(ReaderDB.getPersonalizationParameters().getUsername(), ReaderDB.getPersonalizationParameters().getPassword());
} catch (Exception e) {
returnMsg = e.getMessage();
}
After first Login you can save the credentials in Android sharedpreference.
Regards,
Midhun VP
Hello Midhun!
I Like you answer because I have implemented a offline System that works similar to that offline API.
Its a Time Saver. What I did was to create an Local MBO that saves the User and Password so everytime the user syncs I Update the Local MBO.
In this way I also able to LoginOffline with the last successful Login.
the problem and maybe the reason that that method is deprecated is that if the SUP password changes I'll be able to login with old password.
But thinking twice, this problem may be unsolvable right?
Because I need internet to get credentials.
Best Regards,
Laguerta
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.