Cordova Social Sharing Plugin
Last updated
Was this helpful?
Last updated
Was this helpful?
This Cordova plugin is used to share text, files, images, and links via social networks, sms, and email.
Repository:
Plugin ID/package name: cordova-plugin-x-socialsharing
Tested version: 6.0.4
Repository:
Plugin ID/package name: cordova-plugin-actionsheet
Tested version: 2.3.3
From the IDE menu, go to Config → Manage Cordova Plugins .
Click the Import Cordova Plugin button. Then, you can choose to import the plugin using a ZIP file or a URL/package name.
Share to Facebook.
Parameter
Name
Type
Description
message
String
Message
image
String
Image's source
url
String
website url
Return Value
Promise
Example
Share to Twitter.
Parameter
Name
Type
Description
message
String
Message
image
String
Image's source
url
String
website url
Return Value
Promise
Example
Share to Instagram.
Parameter
Name
Type
Description
message
String
Message
image
String
Image's source
Return Value
Promise
Example
This section describes some of the main functions used in the . For complete API references, please refer to the .