From 5136ab0058d3bbe76b88f992f0ed4c3286f07f01 Mon Sep 17 00:00:00 2001 From: Vo2le Date: Tue, 1 Mar 2016 09:35:45 +0100 Subject: [PATCH 1/2] Added Windows 10 Universal App Support --- package.json | 6 ++++-- plugin.xml | 11 +++++++++++ src/windows/SmsProxy.js | 13 +++++++++++++ 3 files changed, 28 insertions(+), 2 deletions(-) create mode 100644 src/windows/SmsProxy.js diff --git a/package.json b/package.json index 275e4e5..4b10fa8 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "platforms": [ "android", "wp8", - "ios" + "ios", + "windows" ] }, "repository": { @@ -21,7 +22,8 @@ "ecosystem:cordova", "cordova-android", "cordova-wp8", - "cordova-ios" + "cordova-ios", + "cordova-windows" ], "engines": [ { diff --git a/plugin.xml b/plugin.xml index 88da7e0..a06536a 100644 --- a/plugin.xml +++ b/plugin.xml @@ -33,6 +33,7 @@ + @@ -54,4 +55,14 @@ + + + + + + + + + + diff --git a/src/windows/SmsProxy.js b/src/windows/SmsProxy.js new file mode 100644 index 0000000..0bc7c84 --- /dev/null +++ b/src/windows/SmsProxy.js @@ -0,0 +1,13 @@ +module.exports = { + + send: function (win, fail, args) { + + var chatMessage = new Windows.ApplicationModel.Chat.ChatMessage(); + chatMessage.body = args[1]; + chatMessage.recipients.push(args[0]); + Windows.ApplicationModel.Chat.ChatMessageManager.showComposeSmsMessageAsync(chatMessage); + + } +}; + +require("cordova/exec/proxy").add("Sms", module.exports); From fafd03fc526d6c239aeb98564cc5be332fc769eb Mon Sep 17 00:00:00 2001 From: Benedikt Reuter Date: Fri, 11 Mar 2016 10:27:42 +0100 Subject: [PATCH 2/2] Removed windows 10 chat capabilities is not needet to write sms --- plugin.xml | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugin.xml b/plugin.xml index a06536a..d951658 100644 --- a/plugin.xml +++ b/plugin.xml @@ -61,8 +61,5 @@ - - -