Copy link to clipboard
Copied
Hello,
I'm building my first Air desktop app in a while and I'm discovering I can't fullscreen the app. I get a permission denied on Mac.
Are there new settings to allow this?
Cheers,
Peter
Copy link to clipboard
Copied
Yes in your app description xml, you need to set fullscreen to true.
Copy link to clipboard
Copied
That is only under the Mobile options and for the initial fullscreen settings.
I've done this a while and never heard that desktop has fullscreen security.
Copy link to clipboard
Copied
Bump, is this something where I have to create an ANE to activate?
Copy link to clipboard
Copied
You shouldn't need an ANE no.
I have several desktop apps where I can go into full screen without being asked any permissions via
stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE.
This is with AIR 27 and OSX 10.12
It might be useful if you posted your app.xml and explain what code you are calling to go to fullscreen.
Are you loading an external swf and calling fullscreen from that for example.
Copy link to clipboard
Copied
I've solved this problem. You cannot resize the native window in fullscreen mode. I throws a fullscreen security error.
stage.nativeWindow.width
Copy link to clipboard
Copied
FYI you solved the problem for a question you never asked cos resizing a native window in fullscreen is not the same as being denied fullscreen by the system.
Copy link to clipboard
Copied
The error was triggered when the user would click the fullscreen button and this is what we got.
SecurityError: Error #2152: Full screen mode is not allowed.
Deep in the code was something that set the nativeWindow size anytime there was a change. But the real cause is the error message gave a false description. It should have said resizing in fullscreen mode not allowed. Instead we assumed it was a security issue and went down the route of looking into it.