Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fullscreen is not work for me #1139

Closed
aim-leo opened this issue Jan 7, 2021 · 7 comments
Closed

Fullscreen is not work for me #1139

aim-leo opened this issue Jan 7, 2021 · 7 comments

Comments

@aim-leo
Copy link

aim-leo commented Jan 7, 2021

Describe the bug
Hello, I'm try to move my project from electron-packager, and I'm trying to set my app auto fullscreen when it start. my project is generated by vue-cli, and add vue-cli-plugin-tauri.

The app can serve and build success, but can not auto fullscreen.

My system info:

  • vue-cli-plugin-tauri v0.14.0
  • tauri-api v0.7.5
  • tauri v0.10.0
  • rustc v.149.0
  • tauri-bundler v0.9.4
  • node.js v14.4.0
  • npm v6.14.5

And my tauri.conf.json:

{
  "ctx": {},
  "tauri": {
    "embeddedServer": {
      "active": true
    },
    "bundle": {
      "active": true,
      "targets": ["appimage"],
      "identifier": "com.tauri.dev",
      "icon": [
        "icons/32x32.png",
        "icons/128x128.png",
        "icons/128x128@2x.png",
        "icons/icon.icns",
        "icons/icon.ico"
      ],
      "resources": [],
      "externalBin": [],
      "copyright": "",
      "category": "DeveloperTool",
      "shortDescription": "",
      "longDescription": "",
      "deb": {
        "depends": [],
        "useBootstrapper": false
      },
      "osx": {
        "frameworks": [],
        "minimumSystemVersion": "",
        "useBootstrapper": false
      },
      "exceptionDomain": ""
    },
    "allowlist": {
      "all": true
    },
    "window": {
      "title": "Tauri App",
      "resizable": true,
      "fullscreen": true
    },
    "security": {
      "csp": "default-src blob: data: filesystem: ws: http: https: 'unsafe-eval' 'unsafe-inline'"
    },
    "inliner": {
      "active": true
    }
  }
}

Any response will be grateful.

@nklayman
Copy link
Member

Currently fullscreen is not implemented. We are waiting on webview/webview#458 to be resolved. The author of webview (the library Tauri uses under the hood) said that they will create an 'extension' that will add fullscreen support, but we haven't heard from them in a while. We should probably remove the fullscreen property from the default tauri.conf.json as it doesn't work yet.

@rx2347
Copy link

rx2347 commented Feb 10, 2021

Any news on this one? Not having fullscreen support makes Tauri way less attractive for everyone building kiosk systems.

@nklayman
Copy link
Member

We actually have it working in the dev branch of Tauri, just hang on till the next release 🙂

@lucasfernog
Copy link
Member

I'll close this issue since this will be available on the next release 🥳

@dev-itzarun
Copy link

dev-itzarun commented Jul 23, 2022

Hai @lucasfernog , @nklayman

Setting this option to true fullscreen": true in tauri.conf.json open the app in fullscreen

"windows": [ { "fullscreen": true, "height": 600, "resizable": true, "title": "Test App", "width": 800 } ]

But when if Fullscreen is requested from JavaScript the title bar not getting hidden

image

Give a solution For this

@melMass
Copy link

melMass commented Feb 27, 2023

Setting this option to true fullscreen": true in tauri.conf.json open the app in fullscreen

That's exactly what you ask it to do...
I think you are looking for tauri.allowlist.window.setFullscreen

@nikkxgod
Copy link

I don't know if it's actual or not, but I'll attach it nonetheless:

src-tauri/tauri.conf.json ->
tauri{
windows{
"fullscreen" : true
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants