- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi all,
I created an HTML+Cordova project and I tried without success to import and use plugin com.jsmobile.plugins.sms using Intel XDK internal tool.
I wonder where I am going wrong. Can you help me?
Thanks in advance.
Mark
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You must be doing something incorrectly. It works fine when I imported and added the correct code from the plugins site.
function sendSMS()
{
var messageInfo = {
phoneNumber: "4849425499",
textMessage: "This is a test message"
};
sms.sendMessage(messageInfo, function(message) {
console.log("success: " + message);
}, function(error) {
console.log("code: " + error.code + ", message: " + error.message);
});
}
<button style="width:100%;height:20px;left:0px;right:0px" onclick="sendSMS()">sendSMS</button>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to build it and test it on device :)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi John,
thank you very much. You´re right , the plugin runs!
Two considerations:
1> unfortunately the XDK it´s a bit tricky because don't see the code in the plugin list on the left with the others Cordova plugins.
2> if you debug the device you get an error : sms not defined. Ok, into the INTEL XDK documentation I read that is not possible to debug of third-party plugin.
Thanks a Lot for you HELP !!
Marco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is it possible to manually install the plugins, copying the source folder and modifing xml files?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1. The list of Cordova plugins in the XDK are considered the core plugins. We test them to ensure they work. We can not include every Cordova plugin other wise we would have to test all of them to make sure they are compatiable, which we do not have time to do. This is why we allow you to include other 3rd party Cordova plugins.
2. You MUST build you app and install it to test the 3rd party plugins.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page