![Crates.io Version](https://img.shields.io/crates/v/tauri-plugin-openurl) ![Crates.io Total Downloads](https://img.shields.io/crates/d/tauri-plugin-openurl) ![NPM Version](https://img.shields.io/npm/v/tauri-plugin-openurl-api) ![NPM Downloads](https://img.shields.io/npm/d18m/tauri-plugin-openurl-api) # Tauri Plugin openurl Open url in browser on all platforms1 (excluding IOS, still in testing). Basically `` replacement for all platforms1. ## Usage This plugin is still part of Tauri V2 Beta. So, this project might be replaced by a fix in Tauri core itself before project is stable. ### Setup npm ```bash npm i tauri-plugin-openurl-api ``` && cargo (possibly inside ./src-tauri/) ```bash cargo add tauri-plugin-openurl ``` also add this to your tauri builder ```rust tauri::Builder::default() // other plugins .plugin(tauri_plugin_openurl::init()) // rest of the builder ``` ### Usage ```javascript import { open_url } from "tauri-plugin-openurl-api"; ``` ### Permissions Please make sure you add this permission to all platforms you intend to use in ```json { "permissions": [ "openurl:allow-open-url" ] } ``` References: 1 : excluding IOS as it is still in testing.