How to disable Refresh button in browser for Desktop Kony app

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.

When user click on browser refresh button

Actual -User is getting logged out

Expected-User should stay on same page.

Kony Viz -8.0

Platform -Desktop web

The refresh icon in the browser is native and cannot be disabled.

Once the user refreshes, to keep the user logged in - you will have to maintain user session.

Hi,

Have you tried Appservice, AppService will help you to reload the same page when user clicked on the refresh button. You can call the below function in AppService to load the same page on browser refresh.

function appServiceCallBack(params){

kony.print("lll"+params.launchparams['formID'])

if (params.launchparams['formID']) {

kony.print("inside loop");

var formID = params.launchparams['formID'];

return formID;

}

}

Hey!

If you want to disable refresh button in browser for Desktop, go to the source code of the website and go to the property of the refresh button then deactivate button. For more information about the browser https://sfy.co/mozilla-firefox-pc/