You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
Hi, I copied the code from here: https://pub.dev/packages/open_mail_app
and it works fine, but among the 3 mail apps that I have installed on my Xiaomi Mi 9T (Android 9 Pie) it also shows me the PayPal app. Do you know why the standard filter could fail?
`RaisedButton(
child: Text("Open Mail App"),
onPressed: () async {
// Android: Will open mail app or show native picker.
// iOS: Will open mail app if single mail app found.
// OpenMailApp.setFilterList(List.of({'paypal'})); // it shows me paypal with or without this line
OpenMailAppResult result = await OpenMailApp.openMailApp();
// If no mail apps found, show error
if (!result.didOpen && !result.canOpen) {
showNoMailAppsDialog(context);
// iOS: if multiple mail apps found, show dialog to select.
// There is no native intent/default app system in iOS so
// you have to do it yourself.
} else if (!result.didOpen && result.canOpen) {
showDialog(
context: context,
builder: (_) {
return MailAppPickerDialog(
mailApps: result.options,
);
},
);
}
},
),`
Thank you and best regards :)
The text was updated successfully, but these errors were encountered:
It's been a while since I worked on this (and I am no longer a contributor), but I also noticed this when using and building the library.
PayPal unfortunately registers itself as capable of sending an email.
To filter you can use getMailApps, filter the result yourself, and then use openSpecificMailApp. You would also need to build your own dialog in this case.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi, I copied the code from here: https://pub.dev/packages/open_mail_app
and it works fine, but among the 3 mail apps that I have installed on my Xiaomi Mi 9T (Android 9 Pie) it also shows me the PayPal app. Do you know why the standard filter could fail?
Thank you and best regards :)
The text was updated successfully, but these errors were encountered: