Skip to main content
Inspiring
November 28, 2017
Question

Air Fullscreen denied on OSX 10.11

  • November 28, 2017
  • 4 replies
  • 784 views

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 has been closed for replies.

4 replies

Inspiring
December 20, 2017

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.

Inspiring
December 20, 2017

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

stage.nativeWindow.width

Inspiring
December 20, 2017

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.

Inspiring
December 11, 2017

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

Legend
December 11, 2017

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.

Inspiring
November 29, 2017

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

Inspiring
December 1, 2017

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.