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?
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.
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.
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?
这不会让您的应用程序被拒绝,因为我已经上传了一个应用程序,现在它已经在App Store上。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.