Nativefier: [regression - 8.0.7-9.1.0] Fix native fullscreen on macOS

Created on 18 Jul 2020  路  5Comments  路  Source: jiahaog/nativefier

Problem statement
macOS supports two types of fullscreen: Zoom and Native Full Screen. Zoom will maximize the window similar to Windows/Ubuntu. Native Full Screen maximizes the window to its own separate workspace. This is used by default by all macOS apps (all 3rd party incl.)
It would be nice to have Native full screen on pressing maximize(green) button.

Suggested solution
Electron definitely supports native full screen as electron apps are able to full screen natively. Thus it must be possible to include it as an option in nativefier.

bug mac

Most helpful comment

I'm having the same problem on Catalina with the latest version of Nativefier (via Homebrew).

After fiddling around a bit and reading some documentation of Nativefier and Electron I tried adding the following parameter:

--browserwindow-options '{ "fullscreenable": "true", "simpleFullscreen": "false" }'

That fixes my problem and windows behave as they should regarding fullscreen support. Maybe this helps in finding a general solution. If not, it is (at least for me) a possible workaround.

All 5 comments

This worked in version 8.0.7 but I just upgraded to 9.1.0 and it is broken.

I am facing the same issue. Please look into it :)

Issue persists in 10.1.0 (on macOS Catalina 10.15.6 (19G2021)).

But, interestingly, when using nativefier --full-screen '<url>' to force the app to open in native full-screen: that works!

And, I can exit full-screen and re-enter it with no issues using the native window controls:

Screenshot 2020-09-08 at 11 53 47

I'm also running into this issue of missing native full screen on macOS. In addition, when creating an app for YouTube, the video doesn't full screen to the entire monitor- it only fills the app window.

I'm having the same problem on Catalina with the latest version of Nativefier (via Homebrew).

After fiddling around a bit and reading some documentation of Nativefier and Electron I tried adding the following parameter:

--browserwindow-options '{ "fullscreenable": "true", "simpleFullscreen": "false" }'

That fixes my problem and windows behave as they should regarding fullscreen support. Maybe this helps in finding a general solution. If not, it is (at least for me) a possible workaround.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jjgalvez picture jjgalvez  路  3Comments

danielyli picture danielyli  路  5Comments

StyxOfDynamite picture StyxOfDynamite  路  4Comments

shnbhg picture shnbhg  路  5Comments

theman8631 picture theman8631  路  5Comments