Skip to content
pubscout

url_launcher_ios

6.4.2, released 3 months ago by flutter.dev

iOS implementation of the url_launcher plugin for launching URLs on iOS devices.

WASM-ready
$ flutter pub add url_launcher_ios
Source repository

What it does

Provides the platform‑specific code that enables the url_launcher API to open web links, mailto links, and other URLs on iOS. Handles Safari view controller behavior and mode support.

AI-written summary of version 6.4.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to launch URLs on iOS as part of a Flutter app
  • You rely on the url_launcher API and want automatic iOS support

Skip it when

  • You are targeting only non‑iOS platforms
  • You need a custom URL‑handling implementation beyond what url_launcher offers

Strengths

  • Automatically included when using url_launcher
  • Supports iOS 12+ and recent SDKs
  • Handles Safari view controller callbacks

Weaknesses

  • Only works on iOS, no functionality on other platforms
  • Must be added to pubspec only if imported directly

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
2
import 'package:url_launcher/url_launcher.dart';

void _launchUrl() async {
  final uri = Uri.parse('https://example.com');
  if (await canLaunchUrl(uri)) {
    await launchUrl(uri);
  }
}

Alternatives

Packages that do the same job and could replace url_launcher_ios.

  • mailto

    Create mailto URIs with support for multiple to, cc, bcc, subject, and body fields with encoding.

Works with

Packages commonly used together with url_launcher_ios: ones it builds on, ones built on it, and its own family.