Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

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?

— asked March 31st 2010 by Rafael Hernandez
  • dial
  • iphone
  • number
  • phone
0 Comments

3 Answers

  • Accepted Answer

    Here you go:

    Ti.Platform.openURL('tel:5551234');
    
    — answered March 31st 2010 by James K
    permalink
    0 Comments
  • this not works with android phones!

    — answered February 3rd 2012 by Sebastian Erb
    permalink
    0 Comments
  • Yes dude this absolutely working with android and on emulator as well.

    Testing Chunk.

    EmergencyCallButton.addEventListener("click",function(event){
        Titanium.Platform.openURL('tel:113');
    });
    
    — answered February 15th 2012 by Hikmat Khan
    permalink
    1 Comment
    • my android opened the phone app and tried to dial "null" ;)
      also if i try exactly your code. ('tel:113')

      — commented February 15th 2012 by Sebastian Erb
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.