cordova-plugin-openwith icon indicating copy to clipboard operation
cordova-plugin-openwith copied to clipboard

Not able to pass extra actions

Open weeks6 opened this issue 3 years ago • 2 comments

I'm trying to pass extra actions as specified in README.md My OS is Win10

  1. setting up the variable: set MY_EXTRA_ACTIONS="<action android:name=android.intent.action.SEND_MULTIPLE />"

  2. installing the plugin

cordova plugin add cc.fovea.cordova.openwith \ --variable ANDROID_MIME_TYPE="image/*" \ --variable IOS_URL_SCHEME=myscheme \ --variable IOS_UNIFORM_TYPE_IDENTIFIER=public.image \ --variable ANDROID_EXTRA_ACTIONS=%MY_EXTRA_ACTIONS%

  1. as a result I get the following field in package.js (cordova)

"cc.fovea.cordova.openwith": { "ANDROID_MIME_TYPE": "image/*", "IOS_URL_SCHEME": "myscheme", "IOS_UNIFORM_TYPE_IDENTIFIER": "public.image", "ANDROID_EXTRA_ACTIONS": "<action android:name=android.intent.action.SEND_MULTIPLE />" }

  1. and the following intent-filter in the android manifest

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

As you can see, I don't get the extra action as I want to And also kind of related issue: Is there a way to pass multiple MIME Types to the plugin on the installation?

weeks6 avatar Mar 13 '21 14:03 weeks6

@weeks6 did you find a way to pass multiple mime types?

CodeWithOz avatar Nov 16 '21 18:11 CodeWithOz

Exactly the same steps I set and same result I got with android.intent.action.VIEW Obviously still unsolved in 2023. Did you find a solution?

benediktcarda avatar Jun 11 '23 18:06 benediktcarda