KasemJaffer / receive_sharing_intent

A Flutter plugin that enables flutter apps to receive sharing photos, text and url from other apps.
Apache License 2.0
325 stars 372 forks source link

Accepting only image types in manifest, will also accept video files in Android #229

Open idish opened 2 years ago

idish commented 2 years ago

`

            <category android:name="android.intent.category.DEFAULT" />
            <data android:mimeType="image/jpg" />
        </intent-filter>`

The app will accept sharing images along with video files, while it should accept only images. leading to undesired behavior.

Edit: seems as that is Android's behavior and not the library's fault, but I'm still keeping it here to see if there's any solution for that. and so other users will be aware of that. see: https://stackoverflow.com/questions/24686398/how-to-avoid-mime-types-in-intent-filters?rq=1