Open ankitjainOfficial opened 6 years ago
Same error, when installing from master:
ionic cordova plugin add https://github.com/EternallLight/cordova-plugin-openwith-ios.git --variable IOS_URL_SCHEME=unique
same error with latest cordova ios version.
@ygyg70 Try downgrading your ios as per this comment: https://github.com/EternallLight/cordova-plugin-openwith-ios/issues/7#issuecomment-410306665
Can I run this plugin without an iOS downgrade? thanks
Can I run this plugin without an iOS downgrade? thanks
I've got the solution:
cordova plugin add https://github.com/EternallLight/cordova-plugin-openwith-ios \ --variable IOS_URL_SCHEME=MyDummyApp
I get diffrent error on installation:
→ cordova plugin add cordova-plugin-openwith-ios \
> --variable IOS_URL_SCHEME=cordovaopenwithdemo
Installing "com.web-mystery.cordova.openwith-ios" for ios
Failed to install 'com.web-mystery.cordova.openwith-ios': CordovaError: Using "requireCordovaModule" to load non-cordova module "child_process" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
at Context.requireCordovaModule (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/Context.js:57:15)
at module.exports (/Users/user/git-repos/cordova-plugin-openwith-demo/plugins/com.web-mystery.cordova.openwith-ios/hooks/npmInstall.js:24:33)
at runScriptViaModuleLoader (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:181:32)
at runScript (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:157:16)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/hooks/HooksRunner.js:125:20
at processTicksAndRejections (internal/process/task_queues.js:89:5)
Using "requireCordovaModule" to load non-cordova module "child_process" is not supported. Instead, add this module to your dependencies and use regular "require" to load it.
same here Pavel
No idea why this works, but try this:
ionic cordova plugin add https://github.com/joshoconnor89/cordova-plugin-openwith.git --variable ANDROID_MIME_TYPE="image/*" --variable IOS_URL_SCHEME=shareextension --variable IOS_UNIFORM_TYPE_IDENTIFIER=public.image
Some reason, when doing ionic cordova plugin add cc.fovea.cordova.openwith
command, it downloads an older version.
Getting an error when trying to install the plugin:
This is the command I used to: