j3k0 / cordova-plugin-openwith

Get your Cordova App in the O.S. "Share" menu on iOS and Android
MIT License
138 stars 114 forks source link

Not able to pass extra actions #112

Open weeks6 opened 3 years ago

weeks6 commented 3 years ago

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

`

            <action android:name="android.intent.action.SEND" />
            <category android:name="android.intent.category.DEFAULT" />

`

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?

CodeWithOz commented 3 years ago

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

benediktcarda commented 1 year ago

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?