I want to logout the user on app exit or we can say on init of app i want user to login into the app everytime. I am unable to invalidate session

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

please tell me how to invalidate the session of user.

I tried kony.application.invalidateSession but it is not supported for android and ios.

Then i tried to logout the user on app exit event :

var callbacks = {

onactive:test,oninactive:test1,onbackground:test2,onforeground:test3,onappterminate:logout};

kony.application.setApplicationCallbacks(callbacks);

But it does not work for me. The control does not execute the code written in logout method.

Kindly suggest the right way to achieve this.

Thanks

Hello

Can you please check on which platform you are trying the application callback API . Please note

Android supports only the onbackground, onmultiwindowmodechanged, and onforeground states.

Please refer the documentation for more details

http://docs.kony.com/konylibrary/visualizer/viz_api_dev_guide/Default.htm#kony.application_functions.htm%3FTocPath%3DApplication%2520API%7Ckony.application%2520Namespace%7C_____0