To be clear, I am running the following JS on a login service error:
navigator.notification.alert(
"Incorrect username and/or password",
callBackFunctionB,
'Login Error'
);
function callBackFunctionB(){
console.log('OK');
}
On the Login page Offline event I'm running the following JS:
navigator.notification.alert(
"Your device has no connectivity",
callBackFunctionB,
'Connection Required'
);
function callBackFunctionB(){
console.log('OK');
}
...and setting a LSV "offline" that's bound to my login button.
On my login button click I am invoking my login service as well as running the following JS:
if ("offline" in localStorage){
navigator.notification.alert(
"Your device has no connectivity",
callBackFunctionB,
'Connection Required'
);
function callBackFunctionB(){
console.log('OK');
}
}