open_mail_app
0.4.5, released 5 years ago by homex.com
Query the device for installed email apps and open them.
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.
- open_mail_app_plus
Query device for installed email apps and open them or present a picker.
54Compare - open_mail
Query device for installed email apps and open them programmatically.
58Compare - open_mail_launcher
Open email applications and compose pre-filled emails on Android and iOS.
71Compare - app_launcher
Launches an installed Android app by its package ID, falling back to Google Play if missing.
46Compare
Works with
Packages commonly used together with open_mail_app: ones it builds on, ones built on it, and its own family.