Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

start chrome packaged app in fullscreen mode

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

like image 687
Kevin Avatar asked Nov 11 '13 08:11

Kevin


Video Answer


1 Answers

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.

like image 126
kqnr Avatar answered Oct 19 '22 06:10

kqnr