Skip to content

j3k0/cordova-plugin-openwith-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published