Reputation: 779
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
Upvotes: 7
Views: 2912
Reputation: 3596
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.
Upvotes: 3