Monaca Onsen UI Discord Chat Github Repo

Beep is not working in Default Project

  • Am new to Cordova and Monaca Cloud IDE. I have edited the phonegap-demo.html so that the vibrate button will instead do the beep(). But it is not working. Is there any thing else to do. Also I had checked to replace the content of a span dynamically, which didn’t work. Not even console.log is working. The platform chosen is android. Probably it’s something fundamental, but not able to figure out. Any tips are appreciated. Thank you!

    var beep = function() {
        var my_media = new Media("beep.wav",
            // success callback
            function() {
                console.log("playAudio():Audio Success");
            // error callback
            function(err) {
                console.log("playAudio():Audio Error: "+err);


    <a href="#" class="btn large" onclick="beep();">Beep/Vibrate</a>