cordova-plugin-share
v0.1.3
Published
Cordova plugin for Native Sharing
Downloads
262
Readme
cordova-plugin-share
Cordova Plugin to open native "share" popup in Android and iOS
Changes
Version 0.1.3: Commit f1c5a43: Merge pull request #5 from mysegfault/master
Install
In your phonegap/cordova project, type:
cordova plugins add cordova-plugin-share
Usage
navigator.share(text,title,mimetype)
- text: Text to share, i.e. "Incredible plugin"
- title: Title of popup, i.e. "Share this quote" (android only, default: "Share")
- mimetype: Mimetype, i.e. "image/jpeg" (android only, default: "plain/text")
More info
- iOS share code from stack overflow
- Android share code from here. Read if you want to understand mimetype options.
- Check out the more elaborate Social Share plugin from Eddy Verbruggen
License
MIT license