- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I'm trying to send an SMS message but get this error in the console after calling intel.xdk.device.sendSMS
Uncaught Error: AppMobi.device.sendSMS: Not available in the Intel XDK
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I believe that API call is not available in the XDK. You need to include the Intel Device plugin, then either build your app or test it with App Preview.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the XDK Device plugin installed. I have also tried the Cordova device plugin and neither work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
To send SMS you can use Featured & Custom cordova plugins
step 1 : go to plugins -> Featured & Custom cordova plugins -> select Device* Plugin
step 2 : Try This code
var bodyText = 'I am at XYZ if you want to join me';
intel.xdk.device.sendSMS(bodyText, "7175551234");
It will open built in application for sending SMS.
OR
step 1 : go to plugins -> Featured & Custom cordova plugins -> select SocialSharing* Plugin
step 2 : Use window.plugins.socialsharing.shareViaSMS( ' Message ', '1234567890' );
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Nick,
You can send SMS with this code "
var bodyText = 'I am at XYZ if you want to join me';
intel.xdk.device.sendSMS(bodyText, "234806311234");
Ensure that you have the "device" option selected under "Featured and custom Cordova plugins".
There is no need for an extra plugin.
"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
function SendSMS(){ var bodyText = 'I am at XYZ if you want to join me'; intel.xdk.device.sendSMS(bodyText, "7175551234"); }
<button onclick="SendSMS();">SEND</button>
See the codes above.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page