Dial a number from button press
I've got a button with an event handler ready to go to take a phone number (preformatted to be just the numbers, no dashes or parenthesis) and dial it. But, I can't find the method to do this (iPhone). I could have sworn I saw this in KitchenSink but I can't find it. What is the method?
3 Answers
-
Accepted Answer
Here you go:
Ti.Platform.openURL('tel:5551234');
-
this not works with android phones!
-
Yes dude this absolutely working with android and on emulator as well.
Testing Chunk.
EmergencyCallButton.addEventListener("click",function(event){ Titanium.Platform.openURL('tel:113'); });