Skip to content
pubscout

open_mail_app_plus

0.0.2, released 2 years ago by istoria.app

Query device for installed email apps and open them or present a picker.

WASM-ready
$ flutter pub add open_mail_app_plus
Source repository

What it does

Provides the ability to query a device for installed email applications and open them. On iOS where multiple mail apps might be installed, it allows showing a picker dialog since there is no native default app intent system.

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

Use it when

  • You need to let users choose which installed email app to open on iOS or Android.
  • url_launcher's default behavior of only opening the default mail app is insufficient.

Skip it when

  • You only need to compose a standard email or open a mailto link using the system default app.
  • You are not willing to configure iOS Info.plist application queries schemes.

Strengths

  • Allows querying available email apps on the device.
  • Provides a built-in mail app picker dialog helper.
  • Solves iOS limitation regarding non-default email apps.

Weaknesses

  • Requires manual configuration of URL schemes in iOS Info.plist.
  • New email apps must be added to both the app's Info.plist and the library source.

Setup

Kind
Plugin (native code)
Effort
Low
Code generation
No
Direct dependencies
3

iOS requires you to list the URL schemes you would like to query in the Info.plist file under LSApplicationQueriesSchemes.

var result = await OpenMailApp.openMailApp();
if (!result.didOpen && result.canOpen) {
  showDialog(
    context: context,
    builder: (_) => MailAppPickerDialog(mailApps: result.options),
  );
}

Alternatives

Packages that do the same job and could replace open_mail_app_plus.

Works with

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