execution of javascript functions in parallel in phonegap -cordova, -


i use phonegap - cordova notification , phonegap statusbarnotification plugin. need run vibrate, beep , statusbarnotofication on 1 moment, how can this?

navigator.notification.vibrate(1000); window.plugins.statusbarnotification.notify(data.title, data.message);     navigator.notification.beep(1);   

when did this:

             window.plugins.statusbarnotification.notify("title", "data");                  navigator.notification.vibrate(1000);              navigator.notification.beep(1);   

it worked fine on htc sensation phone running android 2.3, , on nexus 7 running android 4.2. try other devices if need. 1 thing note devices don't have functionality...for example, nexus 7 doesn't have vibrate capability, code above show notification , make beep noise. also, make sure have volume turned , ring tone set.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -