cordova-plugin-native-share
v1.0.1
Published
Cordova Plugin to open native share popup in Android and iOS
Downloads
12
Maintainers
Readme
cordova-plugin-native-share
Cordova Plugin to open native "share" popup in Android and iOS
Install
In your phonegap/cordova project, type:
cordova plugins add https://github.com/pamblam/cordova-plugin-native-share.git
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