plugins-workspace
plugins-workspace copied to clipboard
[opener] No such file or directory (os error 2) on Android app
Android version = 16
I called:
pnpm tauri add opener
Added permissions
"permissions": [
"core:default",
"opener:default",
"opener:allow-open-url",
]
Tested also with specific url:
{
"identifier": "opener:allow-open-url",
"allow": [
{ "url": "https://example.com" },
]
}
import { openUrl } from "@tauri-apps/plugin-opener";
export const ContinueWithGoogleButton = () => {
const loginWithGoogle = async () => {
try {
await openUrl("https://example.com");
} catch (err) {
setError('Failed to open browser: ' + String(err));
}
}
return (
<>
{error && <Alert severity="error">{error}</Alert>}
<Button
onClick={loginWithGoogle}
>
Continue with google
</Button>
</>
)
}
And on click I am getting:
No such file or directory (os error 2)
Same issue here. It is not working on android.
Same issue on iOS. Downgrading to 2.3.0 fixes this. It seems to be related to the new inAppBrowser option.
/cc @lucasfernog
Same issue can't open external browser on android