Need to check whether MFP server up and running, if server not reachable, need to alert user that system is down.
i have used the below code
renderer.listen('document', 'mfpjsloaded', () => {
WLAuthorizationManager.obtainAccessToken("").then(
function(accessToken) {
console.log("MFP Server is up and running");
},
function(error) {
console.log("MFP Server is not reachable");
}
);
});
but app throws Application Error The connection to the server was unsuccessful. (file:///android_asset/www/index.html)