简体   繁体   English

替换电话或电话提示进行呼叫

[英]Replacing tel or telprompt to call

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". 据我所知,在应用程序内拨打电话的唯一方法是使用“ tel”或“ telprompt”。 When i submitted an app i've received a rejection with this description: 当我提交应用程序时,收到以下说明:

2.5 Details 2.5细节

Your app uses or references the following non-public APIs, which is a violation of the App Store Review Guidelines: 您的应用使用或引用了以下非公开API,这违反了《 App Store审查指南》:

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. 在App Store中不允许使用非公共API,因为如果这些API发生更改,可能会导致不良的用户体验。

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. 对于我的第一次提交,我使用“ telprompt”进行呼叫,然后将其更改为“ tel”,因为我在这里阅读到许多应用程序都被接受,第二次提交后,我收到了相同的答复,但被拒绝。 Can someone advice m how to use dial functions in app without "tel" or "telprompt"? 有人可以建议不使用“ tel”或“ 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. 我们注意到您的应用仍然使用或引用了teleprompt:// API,这违反了《 App Store审查指南》。

We are unable to proceed with the review of your app until this issue has been addressed. 在解决此问题之前,我们无法继续审查您的应用程序。

From your update, it suggests you're sending tel://... or teleprompt://... as a URL. 根据您的更新,它建议您将tel://...teleprompt://...作为URL发送。 The tel: scheme takes a series of digits. tel:方案采用一系列数字。 / is not a digit, so there's no reason you should be passing that as part of the number. /不是数字,因此没有理由将其作为数字的一部分传递。

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. 此代码适用于我提交给Appstore的应用程序。

您已使用telEprompt://而不是telprompt://

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM