on 02-12-2015 10:39 AM
Hi Experts,
I'm using mobile library for creating an application....Iam using a shell and i have a app inside it...
The app contains various views inside it...What I'm trying to achieve is ..I want to logout from a particular view,
ie i just want to logout functions for that view or views.
How will i achieve that?
Thanks,
Ashwin
I stongly advice you to manage your logon procedure with kapsel plug-in. It is easy to implement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashwin,
How you are logged in to the app ? What's the underlying technology. Are you using SAP Mobile Platform ?
Regards, Midhun
SAP Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashwin,
What is the type of application you developed (syclo/native/hybrid)?
Could you elaborate the requirement. What do you mean by logout from views ? How you are logged into the app?
In SMP, when you are logged into SMP server from the application it creates a user in the server. When the user logout from the app it deletes the user from the SMP server.
You can use below code for logout:
App based on native Odata SDK:
private void doLogout() {
//delete registered user
logonUIFacade.deleteUser();
}
Hybrid app that uses kapsel logon plugin:
sap.Logon.core.deleteRegistration(logonUnregisterSuccessCallback, unRegisterErrorCallback);
Regards, Midhun
SAP Technology RIG
Hi Midhun,
thanks for you advice, i'm looking for this solution too. i'm working on Hybird app development, i found the logon.js provided in the Kapsel project has the function doDeleteRegistration . however the codes written by SAP confused me , see the screenshot bellow. why in the success call back function we need to call the sap.AppUpdate.reset(); methond? i just wanna logout , not reset the app.
any advice?
thanks,
Billy
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.