Chrome Stored App - Find Out If Running in Kiosk Mode

I am creating an application that can run in both kiosk mode and normal mode (for example from the Chrome browser), but some functionality only needs to run in kiosk mode. Is there a way to find out if it is running in kiosk mode or normal fullscreen / windowed mode?

Here is a snippet from my manifest.json if it helps

{
    "manifest_version": 2,
    "kiosk_enabled": true,
    "kiosk_only": false
}

      

+3


source to share


1 answer


From the documentation:

To determine if an app is running in a regular session or in a single app kiosk mode, you can check the isKioskSession boolean included in the launchData object from app.runtime.onLaunched .



So:

chrome.app.runtime.onLaunched.addListener(function(launchData) {
    launchData.isKioskSession; //true or false
});

      

+5


source







All Articles