Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

cordova-plugin-native-share

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-native-share

Cordova Plugin to open native share popup in Android and iOS

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

ecosystem:cordova

FAQs

Package last updated on 19 Nov 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts