QNimate

  • CoursesVideos
  • WP PremiumPlugins
  • DemosLab
  • Home
  • QIdea
  • QTrack
Home Carbon Ads Playing Beep Sound using Intel XDK

Playing Beep Sound using Intel XDK

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

A beep sound can be used to notify a user about a incoming chat message while the user is chatting with someone else. It can be used for many other cases but its always related to notifying a user while user is using the app on foreground.

With just one line of code we can play a beep sound

        document.addEventListener("intel.xdk.device.ready",function(){
           //this function must be called inside a event handler. It takes number of beep sounds to play as parameter.
           intel.xdk.notification.beep(2);
        },false);

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

Nov 12, 2014Narayan Prusty
Display Loading Indicator In Status Bar using Intel XDKVibrating Phone using Intel XDK
Comments: 2
  1. Laleh
    6 years ago

    Hi
    Where Should I add this code? I add it to my button interactivity script, but it did not work. I also have included Intel XDK Notification plugin in my app.

    ReplyCancel
  2. jeyanthi
    7 years ago

    hi…
    how can i provide an automatic call option ..like an alert app…in an intelxdk software

    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 2 Comments Cordova
Share this
0
GooglePlus
0
Facebook
0
Twitter
0
Linkedin
Related Articles
  • Sending SMS using Intel XDK
  • Vibrating Phone using Intel XDK
  • Display Loading Indicator In Status Bar using Intel XDK
  • Push Notifications in Intel XDK using pushMobi
  • Preventing Device From Sleeping Using Intel XDK
Our Sponsor
My Books

2014 - 2015 © QNimate
All tutorials MIT license