Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to pass extra actions #112

Open
weeks6 opened this issue Mar 13, 2021 · 2 comments
Open

Not able to pass extra actions #112

weeks6 opened this issue Mar 13, 2021 · 2 comments

Comments

@weeks6
Copy link

weeks6 commented Mar 13, 2021

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?

@CodeWithOz
Copy link

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

@benediktcarda
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants