• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Air Fullscreen denied on OSX 10.11

Participant ,
Nov 28, 2017 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

581

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
community guidelines
Advocate ,
Nov 29, 2017 Nov 29, 2017

Copy link to clipboard

Copied

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

Votes

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
community guidelines
Participant ,
Nov 30, 2017 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.

Votes

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
community guidelines
Participant ,
Dec 11, 2017 Dec 11, 2017

Copy link to clipboard

Copied

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

Votes

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
community guidelines
Engaged ,
Dec 11, 2017 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.

Votes

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
community guidelines
Participant ,
Dec 20, 2017 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

Votes

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
community guidelines
Advocate ,
Dec 20, 2017 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.

Votes

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
community guidelines
Participant ,
Dec 20, 2017 Dec 20, 2017

Copy link to clipboard

Copied

LATEST

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.

Votes

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
community guidelines