Skip to content
pubscout

open_mail_app

0.4.5, released 5 years ago by homex.com

Query the device for installed email apps and open them.

WASM-readyRepository archived
$ flutter pub add open_mail_app
Source repository

What it does

Provides the ability to query the device for installed email apps and open specific mail apps. Allows presenting a picker dialog when multiple mail apps are found on iOS or Android.

AI-written summary of version 0.4.5, 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 their device
  • You need to handle devices with multiple email clients installed, especially on iOS

Skip it when

  • You only need to open a generic mailto link and don't care which app handles it

Strengths

  • Enables querying available email apps on both Android and iOS
  • Provides a customizable picker dialog for iOS when multiple clients exist
  • Supports mocking the platform during testing

Weaknesses

  • Requires manual configuration of LSApplicationQueriesSchemes in iOS Info.plist for each supported email app

Setup

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

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

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.

Works with

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