Skip to main content
Participant
July 21, 2011
Answered

Dialing a number in IOS

  • July 21, 2011
  • 1 reply
  • 2072 views

Is there a way to get a button to dial a telephone number with the packager for IOS.  I have tried 2 ways and neither of them work.

Attempt 1:

button with click event of:

navigateToURL("tel:1-555-555-5555");

Attempt 2:

text box with Link of tel:1-555-555-5555

Is there any way to get the phone to dial a number with flash?

Thanks for any suggestions.

This topic has been closed for replies.
Correct answer Rangora

In AIR, on mobile  platforms, the sms: and tel: URI schemes are supported. On Android,  vipaccess:, connectpro:, and market: URI schemes are supported.      The URL syntax is subject to the platform conventions. For example,  on Android, the URI scheme must be lower case.      When you navigate to a URL using one of these schemes, the runtime  opens the URL in the default application for       handling the scheme. Thus, navigating to tel:+5555555555 opens the phone dialer with the specified      number already entered. A separate application or utility, such as a phone dialer must be available to process the URL.

Try

navigateToURL("tel:+5555555555");

1 reply

RangoraCorrect answer
Inspiring
July 21, 2011

In AIR, on mobile  platforms, the sms: and tel: URI schemes are supported. On Android,  vipaccess:, connectpro:, and market: URI schemes are supported.      The URL syntax is subject to the platform conventions. For example,  on Android, the URI scheme must be lower case.      When you navigate to a URL using one of these schemes, the runtime  opens the URL in the default application for       handling the scheme. Thus, navigating to tel:+5555555555 opens the phone dialer with the specified      number already entered. A separate application or utility, such as a phone dialer must be available to process the URL.

Try

navigateToURL("tel:+5555555555");

TreylockAuthor
Participant
July 21, 2011

Thanks Rangora,

I have Android phone, but only an iPod touch for testing purposes.  On most other applications from the Apple app store when I push a button to make a phone call, a prompt pops up asking if I would like to make a phone call, and after I press yes, another alert comes up saying that I must have an iphone to make phone calls.  I guess with the air publisher apps it reacts a little bit differently becaue there are no pop ups, it just does nothing on the ipod touch when I push a telephone link.

I am having a hard time finding documentation for any of this type of stuff, are there any resources that anyone can recommend to help me get started?

Thanks!

Inspiring
July 21, 2011

I can confirm you that nothing happens when you try this on Ipod or ipad.