Im working on a chrome app, currently testing it using developer mode. Im trying to open my app in full screen whenever user click on app shortcut (chrome -> Apps -> MYAPP). I've managed to do this on button click using requestFullScreen() method but it can only be done when user loads the app and click on fullscreen button. What i want is to launch the app in fullscreen mode. Is it possible to convert that onClick eventlistner to onLoad?
Any help will be highly appreciated.
Thanks
You can set the state
option to "fullscreen"
when calling chrome.app.window.create
. Note that you will also need to declare fullscreen
permission in the app manifest.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With