Will apps that use telprompt be rejected
You may want to have a look at handleopenurl.com an index for iOS URL schemes.
I do not know telprompt. Why not just use tel://10086?
telprompt VS tel and app approval
Since the telprompt
is not official Apple may remove at in future version with out notice. So even if they approve your app you may still run into trouble later on.
Validate if call was made after telprompt
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(called:) name:@"UIApplicationSuspendedNotification" object:nil];
-(void)called:(NSNotification *) notification
{
NSLog(@"Tapped Call button");
}
if Call button was tapped then application will be terminated and go into background so just add an observer for the UIApplicationSuspendedNotification
notification.
telprompt without alert
you can make a call using bellow code:-
NSString *value =@"9999999999";//your telnumber
NSURL *url = [[ NSURL alloc ] initWithString:[NSString stringWithFormat:@"tel://%@",value]];
NSLog(@"currunt number%@",url);
[[UIApplication sharedApplication] openURL:url];
Cocoa - Return to native app after openURL
You want to use IPC (inter process communication), which is a bit odd in iOS apps: You need to register a protocol handler in your app and place a link in the HTML page you're displaying with openURL
. E.g. your link could start with something like "myapp://" instead of "http://".
Look here: http://mobileorchard.com/apple-approved-iphone-inter-process-communication/
Related Topics
Schedule Number of Local Notifications
Ios/Swift - Hide/Show Uitabbarcontroller When Scrolling Down/Up
Swift How to Modify Exif Info in Images Taken from Mobile Camera
Endless Scrolling Background in Spritekit
Custom View Which Looks Like Uialertview
iPhone Opengl Es 2.0 - Pixel Perfect Textures
Create Ssl Connection Using Certificate
A Server with the Specified Hostname Could Not Be Found
Push View Programmatically in Callback, Swiftui
"Unable to Validate Your Application Error" While Uploading a New Version of iOS App
Can't Import Embedded Framework with Xcode 6 Gm
Storyboard Instantiateviewcontrollerwithidentifier Not Setting Iboutlets
How to Play a Video from Either a Local or a Server Url in iOS
What Is Main Thread Checker in Xcode
Embedding a Framework Within a Framework (iOS 8+)
Making Com.Apple.Coredata.Concurrencydebug 1 Work
How to Keep the Keyboard from Covering My UI Instead of Resizing It