18

In order to return to app after call, I use telprompt instead of tel. Codes like this:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://10086"]];

Somebody says that it will be rejected by apple because telpromt is not the public URL Scheme. But I didn't find a certain answer - Yes or No. Can anybody help me?

Smeegol
  • 2,014
  • 4
  • 29
  • 44

4 Answers4

14

telprompt:// and tel:// are both valid custom URL scheme of iOS, for now.

Since Apple does not have documentation on telprompt, its functionality may be removed without notice (low chance though).

Note: Their behavior is different. The former one is better, as it won't dial the number directly and won't stay at Phone app after call.

Raptor
  • 53,206
  • 45
  • 230
  • 366
14

I noticed that with iOS 8.0 the tel:// URL scheme will also return to the app after the call. The only difference now is that with telprompt:// the app will prompt before starting the call.

shim
  • 9,289
  • 12
  • 69
  • 108
Sal
  • 1,230
  • 13
  • 21
7

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?

miho
  • 11,765
  • 7
  • 42
  • 85
  • 9
    Because tel://10086 will come to home view after call, but telprompt://10086 will return the app after call. – Smeegol Jul 23 '12 at 14:05
  • Thanks for the info. I am sorry, didn't know that. – miho Jul 24 '12 at 10:08
  • 1
    You may got a better answer by asking that in the Apple developer forum. But it would be nice to post it here too, if you got an answer. – miho Jul 24 '12 at 10:51
  • I know this is old but I did find a couple people claiming their apps were approved using telprompt: "I've submited my app that uses telpromt with shared application without the uiwebkit and has been successfully approved by apple. answered January 19, 2013 Pablo Alejandro Junge" – Mark McCorkle May 15 '13 at 14:15
  • 6
    Also, telprompt:/ shows the number and asks for confirmation before starting the call. Definetely better than placing the call directly. – txulu May 16 '13 at 10:53
  • 5
    I submitted an app using telprompt in 2011 and can confirm that the app was accepted. – nh32rg Aug 19 '13 at 17:21
  • Xcode 14 iOS 16. These two links are the same: Show call confirmation > Open Phone app and call the phone number > go back to app when hang up phone. – blyscuit Mar 01 '23 at 03:15
0

This will not get your application rejected as I already uploaded an application with this and it is on the App Store now.

shim
  • 9,289
  • 12
  • 69
  • 108