cordova-plugin-simpleshare

Cordova plugin for Native Sharing

Usage no npm install needed!

<script type="module">
  import cordovaPluginSimpleshare from 'https://cdn.skypack.dev/cordova-plugin-simpleshare';
</script>

README

Simple Share plugin for Cordova

Cordova Plugin to open native "share" popup in Android and iOS for sending simple data to other apps

Installation

cordova plugins add cordova-plugin-simpleshare

Usage

navigator.share(text, title, mimeType)
  • text: Text to share, e.g. "Incredible plugin"
  • title: Title of popup, e.g. "Share this quote" (android only, default: "Share")
  • mimeType: MIME type, e.g. "image/jpeg" (android only, default: "plain/text")

More info

License

MIT license