tauri-apps / tauri-apps/plugins-workspace

[opener] No such file or directory (os error 2) on Android app

Open
#2,913 4 comments 4 reactions 0 assignees View on GitHub
platform: android plugin: opener status: waiting type: bug
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

Android version = 16

I called:
```
pnpm tauri add opener
```

Added permissions

```json
"permissions": [
"core:default",
"opener:default",
"opener:allow-open-url",
]
```

Tested also with specific url:
```json
{
"identifier": "opener:allow-open-url",
"allow": [
{ "url": "https://example.com" },
]
}
```

```ts
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 && {error}}

Continue with google


)
}
```

And on click I am getting:
```
No such file or directory (os error 2)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.