mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
chore: improve iOS local network permission error message
This commit is contained in:
@@ -198,7 +198,8 @@ fn get_response<R: Runtime>(
|
||||
if let Some(s) = e.status() {
|
||||
format!("status code: {}", s.as_u16())
|
||||
} else if cfg!(target_os = "ios") {
|
||||
", did you grant local network permissions? That is required to reach the development server. Please grant the permission via the prompt or in `Settings > Privacy & Security > Local Network` and restart the app. See https://support.apple.com/en-us/102229 for more information.".to_string()
|
||||
let msg = ", did you grant local network permissions? That is required to reach the development server. Please grant the permission via the prompt or in `Settings > Privacy & Security > Local Network` and restart the app. See https://support.apple.com/en-us/102229 for more information.";
|
||||
format!("{msg}{}", if url.contains("localhost") { " To run on physical devices, use the `--host` option for the `tauri ios dev` command." } else { "" })
|
||||
} else {
|
||||
"".to_string()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user