How to remove popup iOS app on call?
I want to prompt the user to make a call from an application with a single popup menu with specific text. I'll show him the popup first, and if he agrees, I run the code to call from the app. But regardless of the use of tel://
, telprompt://
, tel:
for reference, I always get a second pop-up window from the system with a phone number in it. How do I change my code so I don't get this second popup from the system? Searched for questions like here, none were helpful.
After these lines of my code, a second popup will appear:
NSString *phoneURLString = @"tel://11111111";
NSURL *phoneURL = [NSURL urlWithString:phoneURLString];
if ([[UIApplication sharedApplication] canOpenURL:phoneURL]) {
[[UIApplication sharedApplication] openURL:phoneURL];
}
I also added Info.plist
to the and LSApplicationQueriesSchemes
values section . Thanks for any help, thanks in advance!tel
telprompt
source to share
Unfortunately, what you want to do is not possible, at least in existing iOS versions. This dialog will always be displayed.
Apple has documentation for openURL
:
When a third party application calls openURL: on a tel: //, facetime: //, or facetime-audio: // URL, iOS displays a prompt and requires user confirmation before dialing.
source to share