Titanium Community Questions & Answer Archive

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

click phone # to make a call?


I'm create an app that will allow people to include their phone number (classifieds app) and I would like for people using my app to be able to click on a phone number and call the person who posted the classified.

Is this possible?

— asked November 4th 2010 by Mark King
  • call
  • iphone
  • make

1 Answer

  • Titanium.Platform.openURL("tel:123456789");

    Works on device only

    — answered November 4th 2010 by Dan Tamas
    1 Comment
    • Just in case someone wants to format the number using JS:

      var telNumClean = ContactNumber.replace(/[^0-9]/g, "");
      telNumClean = telNumClean.split(' ').join('');

      — commented February 21st 2011 by Shoeb Surya
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.