Highlighted

Air Fullscreen denied on OSX 10.11

Participant ,
Nov 28, 2017

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

TOPICS
Development

Views

427

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Air Fullscreen denied on OSX 10.11

Participant ,
Nov 28, 2017

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

TOPICS
Development

Views

428

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Nov 28, 2017 0
Advocate ,
Nov 29, 2017

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 29, 2017 0
Participant ,
Nov 30, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Nov 30, 2017 0
Participant ,
Dec 11, 2017

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 11, 2017 0
Engaged ,
Dec 11, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 11, 2017 1
Participant ,
Dec 20, 2017

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 20, 2017 0
Advocate ,
Dec 20, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 20, 2017 0
Participant ,
Dec 20, 2017

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 20, 2017 1