Comments (12)
I fixed it by adding an intent query to my AndroidManifest.xml:
<queries>
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="mailto" />
</intent>
</queries>
from open-mail-app-flutter.
Hmm maybe a permissions issue.
from open-mail-app-flutter.
Hmm I just tested on both 10 and 11 and it worked on both. Can you try the sample app in the repo and see if it works for you?
from open-mail-app-flutter.
Yes indeed. With a newly created flutter application, it works. But not in the application created six months ago (But on Android 7 everything works correctly)
Maybe the matter is in the MainActivity configuration?
from open-mail-app-flutter.
My investigation shows that if in android/app/build.gradle set versions:
minSdkVersion 21
targetSdkVersion 30
then the email app is not found.
And if set:
minSdkVersion 16
targetSdkVersion 29
then everything works.
from open-mail-app-flutter.
targetSdkVersion 30 is probably it with some new permission or something. Thanks for checking.
from open-mail-app-flutter.
Yes, you are right. With version 30 - there is a problem. with 29 - no problem.
from open-mail-app-flutter.
It's an issue with Android 30's new package visibility privacy requirements:
https://developer.android.com/training/basics/intents/package-visibility
from open-mail-app-flutter.
Hmm, is there a way for a library to include that so users of this package don’t need to?
from open-mail-app-flutter.
Would love a PR if so. No worries if you don’t have the time.
from open-mail-app-flutter.
Fixed in 0.0.8
and 0.1.0-nullsafety.3
.
Thank you @martyfuhry!
from open-mail-app-flutter.
No problem, happy to help.
from open-mail-app-flutter.
Related Issues (20)
- Error on Update Flutter 2.0.1 HOT 1
- Platform.isAndroid and Platform.isIOS while flutter test HOT 5
- Build Failed on Android HOT 1
- Problem composing new email on iOS HOT 2
- OpenMailAppPlugin.kt: (25, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. HOT 2
- Outdated example HOT 5
- Please release a new version with the updated platform: ^3.1.0 dependency HOT 1
- [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method composeNewEmailInMailApp on channel open_mail_app) HOT 4
- Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Null check operator used on a null value. Error thrown Instance of 'ErrorDescription'. HOT 1
- Cannot change mail picker Title text (IOS 15.3.1)
- The MailAppPickerDialog that shows the email options does not match with the platform-specific alert dialog! HOT 2
- The content of emails cannot be filled automatically on Android devices, only the email app can be activated HOT 1
- Can this plugin support the attachment?
- Paypal is in Mail App Picker (Android) HOT 1
- Support for html body
- canOpenURL: failed for URL HOT 4
- problem opening the Gmail application from a Samsung S21 HOT 7
- url launcher is updated
- nativePickerTitle is not showing on Android
- New lines in body not working
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-mail-app-flutter.