Skip to main content
Inspiring
Nov 28, 2017 10:16 PM UTC
Question

Air Fullscreen denied on OSX 10.11

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

This topic is closed to new replies. Start a new post to keep the conversation going.

7 replies

Inspiring
Dec 20, 2017 9:06 PM UTC

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.

Translate
Inspiring
Dec 20, 2017 9:08 AM UTC

I've solved this problem. You cannot resize the native window in fullscreen mode. I throws a fullscreen security error.

stage.nativeWindow.width

Translate
Inspiring
Dec 20, 2017 4:06 PM UTC

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.

Translate
Inspiring
Dec 11, 2017 9:16 PM UTC

Bump, is this something where I have to create an ANE to activate?

Translate
Legend
Dec 11, 2017 11:57 PM UTC

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.

Translate
Inspiring
Nov 29, 2017 1:51 PM UTC

Yes in your app description xml, you need to set fullscreen to true.

Translate
Inspiring
Dec 1, 2017 12:46 AM UTC

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.

Translate