iPhone native applications display an alert asking permission from tel: url
18-Jun-2009 04:14 PM Julian Romero Nieto:
iPhone native applications phone links result in an alert shown to the user asking permission to place the call. The documentation, Apple URL Scheme Reference: Phone Links, last updated: 2009-06-08, clearly stated than only HTML links displays an alert.
Steps to Reproduce:
1.- NSURL *phoneURL = [NSURL URLWithString:telURLString];
2.- [[UIApplication sharedApplication] openURL:phoneURL];
If the URL is correct, the phone.app should launch and "initiates dialing without further prompting from the user."
An alert displays asking if the user really wants to dial the phone number and initiates dialing if the user accepts.
The alert only occurs in iPhone OS 3.0. Previous versions didn't display the alert.
Apple current iPhone OS 3.0 documentation:
Apple URL Scheme Reference: Phone Links
The tel URL scheme is used to launch the Phone application and initiate dialing of the specified phone number. Tapping a telephone link on a webpage displays an alert asking if the user really wants to dial the phone number and initiates dialing if the user accepts. In a native application, opening a URL with the tel scheme initiates dialing without further prompting from the user.
Possible duplicate: rdar://6983447 and rdar://6983486
Reports posted here will not necessarily be seen by Apple.
All problems should be submitted at bugreport.apple.com before they are posted here.
Please only post information for Radars that you have filed yourself, and please do
not include Apple confidential information in your posts. Thank you!