Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3353

SAPUI5 IOS KAPSEL Logon delete registration holds application session.

$
0
0

Hi There,

 

Good day ...!

 

We are using SMP 3.0 SP10, KAPSEL Logon plugin for IOS 9.3.1.

 

Using Kapsel Logon Plugin We register and unregister device, how ever I have below 2 issues which I couldn't find the reason or solution.

 

1) When user registers on the device, we see an entry of registration in SMP Admin cockpit. but on successful unregistration (sap.Logon.core.deleteRegistration) I assume the registration entry to be deleted, but its not happening.

 

2) This is weird, User A registers successfully and then unregisters, now with out killing the APP straight away if User B registers, it says success but in the Admin cockpit registration entry is with User A, so from here all calls to SMP or Odata returns 403 forbidden error.

 

If we kill the APP relaunch it and register it with User B everything works fine.

 

for scenario 2, after successful (sap.Logon.core.deleteRegistration) we just reload the window which mean Index.html is called and new context is created.

 

below is my code for reference:

 

deRegisterDevice: function(evt)
{  var controller = this;  jQuery.sap.require("sap.m.MessageBox");  sap.m.MessageBox.show(  "Deregistering the device will remove any data stored for the Application. \n Do you want to procced deregistration ",{  icon: sap.m.MessageBox.Icon.WARNING,  title: "Warning",  actions:[sap.m.MessageBox.Action.YES, sap.m.MessageBox.Action.NO],  onClose:function(oAction) {  if(oAction === "YES")  sap.Logon.core.deleteRegistration(controller.logonDeregisterSuccessCallback, controller.errorDeregisterCallback);  }  });
},
logonDeregisterSuccessCallback: function(result){  applicationContext = null;  var app = sap.ui.getCore().byId("App");  var vController = app.getPage("tileHome").oController;  jQuery.sap.require("sap.m.MessageBox");  sap.m.MessageBox.show(  "Device registration has been removed",{  icon: sap.m.MessageBox.Icon.SUCCESS,  title: "Success",  actions:[sap.m.MessageBox.Action.OK],  onClose:function(oAction) {  vController.router.oHashChanger.setHash("");  window.location.reload();  });
},

 

Have some one came across this and have a fix please advice.


Viewing all articles
Browse latest Browse all 3353

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>