Giter Club home page Giter Club logo

Comments (12)

martyfuhry avatar martyfuhry commented on August 19, 2024 1

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.

MisterJimson avatar MisterJimson commented on August 19, 2024

Hmm maybe a permissions issue.

from open-mail-app-flutter.

MisterJimson avatar MisterJimson commented on August 19, 2024

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.

DmytroB36 avatar DmytroB36 commented on August 19, 2024

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.

DmytroB36 avatar DmytroB36 commented on August 19, 2024

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.

MisterJimson avatar MisterJimson commented on August 19, 2024

targetSdkVersion 30 is probably it with some new permission or something. Thanks for checking.

from open-mail-app-flutter.

DmytroB36 avatar DmytroB36 commented on August 19, 2024

Yes, you are right. With version 30 - there is a problem. with 29 - no problem.

from open-mail-app-flutter.

martyfuhry avatar martyfuhry commented on August 19, 2024

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.

MisterJimson avatar MisterJimson commented on August 19, 2024

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.

MisterJimson avatar MisterJimson commented on August 19, 2024

Would love a PR if so. No worries if you don’t have the time.

from open-mail-app-flutter.

MisterJimson avatar MisterJimson commented on August 19, 2024

Fixed in 0.0.8 and 0.1.0-nullsafety.3.

Thank you @martyfuhry!

from open-mail-app-flutter.

martyfuhry avatar martyfuhry commented on August 19, 2024

No problem, happy to help.

from open-mail-app-flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.