New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-share

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-share

Cordova plugin for Native Sharing

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

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

FAQs

Package last updated on 13 Apr 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc