- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am trying to us the sendSMS function included in the cordova-plugin-intel-xdk-device plugin. From my understanding this should already be the recast of the retired plugin and therefore it shoul be still supported and working?
I have added the plugin using the Git URL https://github.com/01org/cordova-plugin-intel-xdk-device. The plugin is added correctly.
I have then added a function "device.sendSMS("Hello", "1234567890");" to a js function of my project. There is an error, code execution is stopped after this command. JSHint tells me 'intel' is not defined which is something normal for functions in other js files but not for plugins which are usually correctly resolved.
Thinking that there may be a conflict, I have removed the Cordova Device plugin, but no effect.
Also other functions like a simple intel.xdk.device.model lead to an error which suggests to me that the plugin is not working at all. I have tried on different platforms (iPad, Windows Phone, Android emulator) but no change.
I am feeling a bit stupid as this should be really an easy one but I ran out of ideas what to try.. Any suggestions?
Thank you!
Peter
- Tags:
- HTML5
- Intel® XDK
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you wating for the deviceready event before you try to access the functions in that plugin? Those functions and the intel.xdk namespace will not be defined until the cordova.js script has completed (that script does not exist in your project, it is assembled at build time to match the plugins you have added to your project). Does your app include a script include of cordova.js?
See the blank templates, especially the very first one in the html5 cordova samples:

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