ShoutSocial / share_handler

A plugin to facilitate receiving and handling share intents
41 stars 39 forks source link

Add support for android action.VIEW intent filter #58

Open Mounix99 opened 1 year ago

Mounix99 commented 1 year ago

I think it is possible to add support for this intent filter for android

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="image/*" />
</intent-filter>

This filter is used for "Open with" option on android. It would be cool to have support for it among with other intent filters in this package

starshipcoder commented 1 year ago

The lib seems to support this intent, in my case it works with

`

`

The problem is I receive an url (in content) and the attachments are null I would prefere to receive the corresponding file or at least the content of the file

Mounix99 commented 1 year ago

@starshipcoder Same for me, by "add support" I meant replacing the URL with a direct attachment.

filipenanclarez commented 1 year ago

@Mounix99 and @starshipcoder please look this comment:

https://github.com/KasemJaffer/receive_sharing_intent/pull/160#issuecomment-1031383863

;)

Mounix99 commented 1 year ago

@filipenanclarez Thanks, this works as expected. But I have one more problem with that, I use go_router navigation and deep links and now it redirects me by content uri to "page not found" (as it should) Do you know any ways to block or disable redirection by content:// scheme but still have this "open with" option for files ?