cordova - Phone call in Phonegap on Blackberry -


phone links <a href="tel:1-408-555-5555">1-408-555-5555</a> used in app. on blackberry 10 device, work fine in browser. when wrap app phonegap, doesn't, nothing happens. how dial phone number phonegap app on blackberry? device blackberry z10, if matters.

edit: i've missed code links have empty href href="#" , phone dial fires javascript. i've changed direct links , dial works.

you can create function this. worst case.

function callsomeone(number){     if (navigator.useragent.tolowercase().match(/android/)) {         document.location.href = 'tel:'+number;     } else if (navigator.useragent.tolowercase().match(/iphone/) || navigator.useragent.tolowercase().match(/ipad/)) {         window.plugins.phonedialer.dial(number);     } } 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -