Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 2.09 KB

README.md

File metadata and controls

51 lines (32 loc) · 2.09 KB

cordova-plugin-openwith-demo

Logo Fovea & Logo InteractiveTools

standard-readme compliant

This is a demo app for Cordova's "Open With..." plugin (cordova-plugin-openwith).

Overview

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.

Table of Contents

Configuration

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.

Usage

Run the app with cordova:

cordova run android --debug

Then you can use Chrome or Safari's dev tool to see what happens.

Contribute

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.

License

MIT © Fovea.cc