Replacing tel or telprompt to call

天大地大妈咪最大 提交于 2019-12-01 10:44:49

问题


I've made an application is used to call predefined numbers upon button press. As far as i know the only way to make call inside app is to use "tel" or "telprompt". When i submitted an app i've received a rejection with this description:

2.5 Details

Your app uses or references the following non-public APIs, which is a violation of the App Store Review Guidelines:

teleprompt://

The use of non-public APIs is not permitted in the App Store because it can lead to a poor user experience should these APIs change.

For my first submission I used "telprompt" to call, then I changed it to "tel" because i read here that many apps were accepted with it and after second submission i received the same response with rejection. Can someone advice m how to use dial functions in app without "tel" or "telprompt"? Any help is appreciated, thanks!

upd: added text for second rejection

Hello,

Thank you for your resubmission. We noticed that your app still uses or references the teleprompt:// API, which is in violation of the App Store Review Guidelines.

We are unable to proceed with the review of your app until this issue has been addressed.


回答1:


From your update, it suggests you're sending tel://... or teleprompt://... as a URL. The tel: scheme takes a series of digits. / is not a digit, so there's no reason you should be passing that as part of the number.




回答2:


Use following code:

NSString *phoneNumber = @"+91 2308966";
NSString *phoneURLString = [NSString stringWithFormat:@"tel:%@", phoneNumber];
NSURL *phoneURL = [NSURL URLWithString:phoneURLString];
[[UIApplication sharedApplication] openURL:phoneURL];

This code is working for an app which I submitted to the Appstore.




回答3:


You have used telEprompt:// instead of telprompt://



来源:https://stackoverflow.com/questions/29477108/replacing-tel-or-telprompt-to-call

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!