This is a demo app for Cordova's "Open With..." plugin (cordova-plugin-openwith).
This app will accept to be sent images. When an image is shared with the app, it'll load it and display it's size in bytes in the console. See www/js/index.js
for the code.
Before launching, add the platform you want to test with.
cordova platform add android
cordova platform add ios
Install the plugin (see cordova-plugin-openwith for instructions). For a quick test:
cordova plugin add cc.fovea.cordova.openwith \
--variable ANDROID_MIME_TYPE="image/*" \
--variable IOS_URL_SCHEME=ccfoveaopenwithdemo \
--variable IOS_UNIFORM_TYPE_IDENTIFIER=public.image
If testing on iOS, there are additional steps to perform from within XCode, please check the doc.
Run the app with cordova:
cordova run android --debug
Then you can use Chrome or Safari's dev tool to see what happens.
Contributions in the form of GitHub pull requests are welcome. Please adhere to the following guidelines:
- Before embarking on a significant change, please create an issue to discuss the proposed change and ensure that it is likely to be merged.
- Follow the coding conventions used throughout the project. Many conventions are enforced using eslint.
- Any contributions must be licensed under the MIT license.
MIT © Fovea.cc