You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get clipboard working with Safari browsers / iOS. Any help would be greatly appreciated.
let _task = spawn_local(asyncmove{let window = web_sys::window().expect("window");let nav = window.navigator().clipboard();match nav {Some(a) => {let p = a.write_text("this text copies to clipboard on android and desktop but not Safari/iOS");let result = wasm_bindgen_futures::JsFuture::from(p).await;match result {Ok(_) => info!("copy worked"),Err(e) => info!("copy fail {:?}", e),}}None => {warn!("failed to clippy the clipboard clip clip");}};});
The error is JsValue(NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
The same error happens on both safari/macbook and safari/iOS.
The text was updated successfully, but these errors were encountered:
Summary
Following up with a discussion here to get more visibility.
May be related to: emilk/egui#3480 ?
I'm trying to get clipboard working with Safari browsers / iOS. Any help would be greatly appreciated.
The error is
JsValue(NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
The same error happens on both safari/macbook and safari/iOS.
The text was updated successfully, but these errors were encountered: