Closed n251256 closed 3 months ago
same issue, and you can't use rust code window.transparent(true)
after window is built:
tauri::Builder::default()
.setup(|app| {
let get_window = app.get_webview_window("main").unwrap();
#[cfg(debug_assertions)]
{
get_window.open_devtools();
}
#[cfg(desktop)]
{
get_window.transparent(true);
}
Ok(())
})
which you would got:
error[E0599]: no method named `transparent` found for struct `tauri::WebviewWindow` in the current scope
--> src\lib.rs:20:28
|
20 | get_window.transparent(true);
| ^^^^^^^^^^^ method not found in `WebviewWindow`
Describe the bug
In V2, setting transparent to true in the WindowConfig will cause a white screen on android, this is not supposed to do anything on android.
Reproduction
tauri android dev
. (its the same when built)Expected behavior
I expect Tauri to automatically turn transparent off on mobile devices.
Full
tauri info
outputStack trace
No response
Additional context
simonhyll
in the Tauri discord server told me it was a bug and to make a bug report