cordova-plugin-x-socialsharing
Advanced tools
Comparing version 5.1.3 to 5.1.4
{ | ||
"name": "cordova-plugin-x-socialsharing", | ||
"version": "5.1.3", | ||
"version": "5.1.4", | ||
"description": "Share text, images (and other files), or a link via the native sharing widget of your device. Android is fully supported, as well as iOS 6 and up. WP8 has somewhat limited support.", | ||
@@ -5,0 +5,0 @@ "cordova": { |
@@ -1,2 +0,2 @@ | ||
var cordova = require('cordova'); | ||
var cordova = require('cordova'); | ||
@@ -13,3 +13,3 @@ module.exports = { | ||
var url = args[3]; | ||
var folder = Windows.Storage.ApplicationData.current.temporaryFolder; | ||
@@ -53,3 +53,3 @@ | ||
var filesCount = fileOrFileArray.length; | ||
var completeFile = function () { | ||
@@ -65,3 +65,3 @@ if (!--filesCount) { | ||
var file = fileOrFileArray[i]; | ||
if (file.indexOf("data:") >= 0) { | ||
if (file.indexOf("data:") >= 0) { | ||
var fileName = getFileName(i, getExtension(file)); | ||
@@ -168,2 +168,11 @@ var buffer = Windows.Security.Cryptography.CryptographicBuffer.decodeFromBase64String(file.split(',')[1]); | ||
} | ||
}, | ||
shareViaSMS: function (win, fail, args) { | ||
var chatMessage = new Windows.ApplicationModel.Chat.ChatMessage(); | ||
chatMessage.body = args[0].message; | ||
if (!!args[1]) { | ||
chatMessage.recipients.push(args[1]); | ||
} | ||
Windows.ApplicationModel.Chat.ChatMessageManager.showComposeSmsMessageAsync(chatMessage).done(win, fail); | ||
} | ||
@@ -170,0 +179,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1315169
25
539