| Crates.io | tauri-plugin-ios-network-detect |
| lib.rs | tauri-plugin-ios-network-detect |
| version | 2.0.1 |
| created_at | 2025-03-02 02:26:10.009215+00 |
| updated_at | 2025-03-02 08:44:09.320949+00 |
| description | A plugin that detects iOS network permission status and automatically displays an authorization. |
| homepage | |
| repository | https://github.com/kingsword09/tauri-plugins-workspace |
| max_upload_size | |
| id | 1574186 |
| size | 130,593 |
| Platform | Supported |
|---|---|
| Linux | x |
| Windows | x |
| macOS | x |
| Android | x |
| iOS | ✓ |
This plugin requires a Rust version of at least 1.77.2
There are three general methods of installation that we can recommend.
Install the Core plugin by adding the following to your Cargo.toml file:
src-tauri/Cargo.toml
[target.'cfg(any(target_os = "ios"))'.dependencies]
tauri-plugin-ios-network-detect = "2.0.1"
use the cargo add command to install it automatically (iOS target only):
cargo add tauri-plugin-ios-network-detect --target 'cfg(target_os = "ios")'
First you need to register the core plugin with Tauri:
src-tauri/src/lib.rs
pub fn run() {
tauri::Builder::default()
.setup(|app| {
#[cfg(target_os = "ios")]
app.handle().plugin(tauri_plugin_ios_network_detect::init())?;
Ok(())
})
.plugin(tauri_plugin_opener::init())
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}