简体   繁体   中英

How to know console error in chrome Kiosk mode

I have a requirement to run my application in chrome kiosk mode, its working fine in normal mode. But when I start kiosk mode app using localhost URL or IIS server URL (Windows), it does not works properly.

A java-script code is unable to run in kiosk mode. I am trying using the following line of code:

            signOutButtonPressed();

            try {
                cwic.LoginController.startDiscovery();
            } catch (e) {
                PhoneDialing("Error: " + e);
            }

From this call I am unable to get this function call from third party APIs. I am sure about this APIs are working when I hosted my code on IIS. I hope anyone must have an experience on same.

If you want to see the errors, you can post the error in server but with kiosk it might be hard to open console with the virtual keyboard. You can try Sentry

Or

window.onerror = function(message, url, lineNumber) { //save error and send to server for example. return true; };

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM