iOS拨号辅助自动将本地号码格式化为美国号码 [英] iOS dial assist auto formats local number to USA number

查看:728
本文介绍了iOS拨号辅助自动将本地号码格式化为美国号码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中允许用户使用以下代码行拨打客户支持

in my application am allowing the user to place call to customer support using this line of code

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"telprompt:18002096006"]]];

但iOS将此格式设置为美国数字,如下所示,并拨打美国电话

but iOS formats this to a USA number like below and makes call to USA

+1(800)209-6006

+1 (800) 209-6006

但这是印度免费电话号码。

but this is an Indian toll free number.

....

我见过从ios用户讨论同样的问题,解决的办法是
在设置>手机中禁用拨号助手

I have seen the same problem discussed from a ios user, and resolved work around is to disable "Dial Assist" in Settings > Phone

问题是,iOS 7中没有这样的选项,即使用户使用的是iOS6,我们也无法要求用户在进行紧急呼叫时更改其设置。

the problem is, there is no such option in iOS 7 and even if the user is using iOS6, we cant ask the user to change it in their settings, when they are making an emergency call..

开发人员是否有任何工作可以本地化电话号码并阻止iOS进行自动格式化

Is there any work around for a developer to localize phone number and prevent auto formatting done by the iOS

推荐答案

在它的前面添加正确的国家代码,这样它就不会触发'拨号辅助'

Add the correct country code in fron of it so it wont trigger the 'dial assist'

这篇关于iOS拨号辅助自动将本地号码格式化为美国号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆