QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Home
  • QIdea
  • QTrack
Home Carbon Ads Sending SMS using Intel XDK

Sending SMS using Intel XDK

This post is a part 6 of Intel XDK Complete Tutorial post series.

With just one line of code you can send SMS using Intel XDK

intel.xdk.device.sendSMS("Message from QNimate", "8608654421");

This function actually opens the default SMS app with the provided message and number. User has to click the send button to send the message. This SMS is send from the current mobile in which app is installed. If you want to send a SMS from your app server then use services like Twilio.

This function only works inside event handlers. So you can’t just call it whenever you like to. For example:

document.addEventListener("intel.xdk.device.ready",function(){
    intel.xdk.device.sendSMS("Message from QNimate", "8608654421");  
},false);

Make sure you have also added Intel XDK Device plugin in your app.

Nov 5, 2014Narayan Prusty
Launch Browser Inside Intel XDK AppPreventing Device From Sleeping Using Intel XDK
Comments: 14
  1. Jorge F.
    6 years ago

    (A solution type Push notification).
    I am new to android … and also in Intel XDK environment.

    Gentlemen supporters, kindly guide me on the questions below:

    1-I want to develop an app for android, which from a text box (text area or INPUT), you to inform your contact or a fact

    or even a complaint, this is sent to a specific e-mail, you see? as a kind of FEEDBACK. It could even be sent also to a

    specific whatsapp, but do not know what would be the most interesting, quick and efficient resolution of technical view

    point.

    2-I have researched a lot about cord-plugins-email-compose, that is, within the Intel XDK environment; I did several

    tests and examples collected from the internet, but do not work. On the other hand, outshines in my view the issue of e-

    mail, domain on android, do not know how this. For I see several apps, same with many such resources, forms, sending

    data, etc. But I’m having a hard time understanding these things.

    3-In a web environment this is all understandable to me. Many years ago, I got to do a few simple things in PHP and Mysql

    … as the situation I described above … made a page in HTML, logging suggestions and invoking a script on the server

    side PHP that I sent these records to a specific email. I stayed this page in cloud, remember that the (localweb) and

    localweb server had the resources to support PHP, Mysql. To host this page on the server, I had to create a domain in

    registro.BR and the service to send form data to an e-mail functioned normally. So I wanted to take this same solution

    … the same idea … ie the web server environment for smartphones environment, android. You see? Finally, develop a

    simple app that the user could file a claim (form – text area, or INPUT button) and this was sent to a specific e-mail or

    even a whatsapp. A solution type Push notification.

    questions:

    1) I have almost given up the cord-plugins-email-compose, however, you can guide me more about this plugin and how to set

    up properly?
    2-Where sets my account email in-cord plug-email-compose?
    3) Can I send data from a form (text area) to integrate Intel XDK with PHP? (Ie, because in PHP, I know how to send e-

    mail)
    3) To host app, which server would indicate me?
    4) Are there any free or paid server to send the APK and test, ie I could download and test the App on my phone?
    5) To host my APP APK or on free or paid server, I would have to necessarily create have a domain? email account? SMTP?

    e-mail server?
    6) Can demontrar me or send me an APP / APK to record a message, or text, or subject (text area or INPUT button) and

    internally APP feature to send this message to an e-mail?
    7) I enjoyed the Intel XDK environment, but I would indicate another similar tool, given the complexity of dealing with

    e-mail?

    Thanks for the clarification.
    Thank you.
    Jorge F.

    ReplyCancel
  2. ranjeet
    6 years ago

    Can anyone send me steps to how and where to add listenrs in init.dev.js and app.js?
    please help me guys..

    ReplyCancel
  3. Metrophobe
    7 years ago

    Silly question really but is there a way to see your blog posts in order? When I click the next from the bottom it does not follow…. from part one I went to part 40 …. then to part 6 …. any link where I can see all the posts in order?

    ReplyCancel
  4. wiliam bermudez
    7 years ago

    good day, i need example of the send message, writting code in xdk and not emulate the example

    ReplyCancel
  5. Ashish
    7 years ago

    can i make calling feature in intel sdk? because there are no methods or objects of intel xdk to develop a calling utility..plz reply..

    ReplyCancel
  6. Okulo
    7 years ago

    how can I make call link?

    ReplyCancel
  7. Kjay
    7 years ago

    Please can you give a more in-depth example like you did for the camera and audio?

    ReplyCancel
  8. AnKo
    7 years ago

    what about sending email using INTEL XDK?

    this option is working good (intel.xdk.device.sendemail) but i would like it send email in the background without user actions, is it possible?

    ReplyCancel
    • Narayan Prusty
      7 years ago

      For that you need your own server.

      ReplyCancel
  9. Jeannot Ekoundo
    7 years ago

    Thanks!

    Do you have any idea to receive (or read) SMS

    ReplyCancel
    • Narayan Prusty
      7 years ago

      Nope u can’t do that. Its not allowed.

      ReplyCancel
  10. sara
    7 years ago

    what about sending email using INTEL XDK?

    ReplyCancel
  11. jots
    7 years ago

    how can i send message without open any other application. .?

    ReplyCancel
    • Narayan Prusty
      7 years ago

      You cannot. Mobile operating systems don't allow you to do that.

      But you can use web services like twilio to send messages in background.

      ReplyCancel

Leave a Reply to wiliam bermudez Cancel reply

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax

Narayan Prusty

I am a software engineer specialising in Blockchain, DevOps and Go/JavaScript. This is my personal blog where I write about things that I learn and feel interesting to share.

7 years ago 14 Comments Cordova
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
Related Articles
  • Launch Default Browser using Intel XDK
  • Intel XDK Copy to Clipboard
  • Playing Beep Sound using Intel XDK
  • Preventing Device From Sleeping Using Intel XDK
  • Launch Browser Inside Intel XDK App
Our Sponsor
My Books

2014 - 2015 © QNimate
All tutorials MIT license