on 02-12-2016 4:58 AM
Hi SMP and Kapsel experts,
Does anyone know of a way to delete the registration on the device without also attempting to delete the registration from the server?
We are encountering some scenarios where the registration needs to be deleted and deleting it on the server is not possible.
The main scenarios are:
1. The server has changed and the old one is unreachable.
2. The user has changed and the old user's password is no longer valid so the unregister can't succeed.
We're currently detecting these scenarios and showing a message to the user to delete the app and reinstall. This is not an ideal handling of these scenarios.
P.S. What's the best way to submit a Kapsel feature request or a bug?
Thanks!
Ryan
Hi Ryan,
I know that the Kapsel logon plugin saves the registration ID internally, so I would try to clear the browser cache. If it doesn't work, I would try clearing the Local Storage memory.
One of that two ways should work.
Hope this helps.
Best Regards,
Emanuel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Emanuel,
Thanks for your response. However neither of those would affect Kapsel's internal storage which is not part of the browser, but rather Kapsel specific native storage (DataVault file I believe but I'm not 100% on that) which is accessible through the Cordova JS-native bridge and the APIs provided by Kapsel.
Ryan
Ryan,
Then, I think there are two possible solutions:
1) Design a custom cordova plugin to delete the native cache.
See the following post:
How to build cordova plugin: GitHub - don/cordova-plugin-hello: Sample Hello World Cordova Plugin
How to clear native cache: http://stackoverflow.com/questions/6898090/how-to-clear-cache-android
2) Debug the code of the Kapsel plugin, and modify it in order to do whatever you want.
I would suggest to follow approach number 1.
Hope this helps.
Best Regards,
Emanuel
I believe you can choose the Forgot Application Passcode button if you have enabled the passcode feature.
If not, you can call the API sap.Logon.core.reset().
Note, the SMP 3.0 SP 10 server added a new feature where you can specify that if an application connection has been dormant for a certain period, it will be deleted by the SMP server.
I believe the checkbox in the UI is labeled as Automatic removal.
Regards,
Dan van Leeuwen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Daniel,
Unfortunately we have passcode disabled.
I tried sap.Logon.core.reset() previously but it didn't work to clear out the previously stored registration info.
Thanks for the details on the server feature. That will be helpful, although it doesn't quite solve this issue.
It sounds like we have no choice but to ask the users to uninstall and reinstall the application when we change hostnames. It is unfortunate that the registration is so tightly coupled to the hostname.
Ryan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.