on 03-11-2019 2:39 PM
I've applied the following logout functionality to my SAPUI5 Hybrid/Cordova app.
onLogout: function () {
if (typeof sap.hybrid !== 'undefined') {
sap.Logon.core.deleteRegistration(this.logonUnregisterSuccessCallback(), this.errorCallback());
}
},
logonUnregisterSuccessCallback: function (){
sap.Logon.core.loadStartPage();
}
deleteRegistration() works, but loadStartPage() takes me straight back into the app without forcing me to login again.
I need to force the login to give the user a method to switch usernames.
Following code can be used for logout functionally in fiori based Hybrid mobile applications , after successful execution of this method , navigate the screen to login page.
sap.Logon.core.deleteRegistration(jQuery.proxy(
this.onDeleteRegistrationSuccess, this), jQuery.proxy(
this.onLogonError, this));
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.