on 05-28-2014 9:01 AM
I want to disable Afaria client in Kapsel Logon plugin on android instead of iOS as follows:
"The Afaria client is opening after calling sap.Logon.init(...), it can be disabled by modifying the file MAFLogonManagerOptions.plist. In Xcode this can be found under Resources > MAFLogonManagerNG.bundle > MAFLogonManagerOptions.plist. Set keyMAFUseAfaria to false."
Hi Elhoussiny and others (if still watching),
The way to disable the afaria logon component in Android is to set a key in the SharedPreference of the application like this:
Editor pEditor = prefs.edit();
pEditor.putBoolean(SharedPreferenceKeys.PREFERENCE_ID_USEAFARIA.toString(), false);
pEditor.commit();
I will make sure that this is documented in a KBA.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John Taylor
Thanks for your help but , this code Doesn't work . "prefs cannot be resolved" should I import any library .
Hi, sorry, it appears that the only way that you could use the above is if you are doing a custom build of the client (the SharedPreferenceKeys should be found in the MAFLogon class). I've put in a query, but as of now, it doesn't sound like there is any way to disable the Afaria integration through JavaScript code or a config file.
Also I need to disable Afaria in Logon plugin, as I get the following error while debugging the application on Android platform:
Failed to find provider info for com.Android.provider.Afaria
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.