QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Home
  • QIdea
  • QTrack
Home Carbon Ads Vibrating Phone using Intel XDK

Vibrating Phone using Intel XDK

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

You can vibrate phone using Intel XDK by just one line of code

        document.addEventListener("intel.xdk.device.ready",function(){
            //you have to call this function inside a event handler.
            intel.xdk.notification.vibrate();
        },false);

Make sure you have included Intel XDK Notification plugin in your app.

Nov 12, 2014Narayan Prusty
Playing Beep Sound using Intel XDKCreate a Barcode Scanner Application using Intel XDK and PHP
Comments: 5
  1. Clayton
    5 years ago

    Hi Narayan,

    If i have my project made with construct 2 and i am building it with intel xdk where do you think i can put these lines of code in the project so the device can vibrate.

    One more thing, i want the player to be able to play the musics on his iphone while playing, how can i do That?
    Your help will be much appreciated…
    Thank You

    ReplyCancel
  2. social
    6 years ago

    when will nike shares split

    ReplyCancel
  3. fiverr method
    6 years ago

    elvis thank you very much

    ReplyCancel
  4. William Phillips
    6 years ago

    where do i insert this code

    ReplyCancel
  5. metrophobe
    7 years ago

    does not work on real phone both in crosswalk and in normal version of xdk

    ReplyCancel

Leave a Reply 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.

8 years ago 5 Comments Cordova
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
Related Articles
  • Intel XDK Copy to Clipboard
  • Launch Default Browser using Intel XDK
  • Playing Beep Sound using Intel XDK
  • Display Loading Indicator In Status Bar using Intel XDK
  • Push Notifications in Intel XDK using pushMobi
Our Sponsor
My Books

2014 - 2015 © QNimate
All tutorials MIT license