iOS dial assist auto formats local number to USA number

别来无恙 提交于 2019-12-06 12:29:46

问题


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"]]];

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

+1 (800) 209-6006

but this is an Indian toll free number.

....

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

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..

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


回答1:


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



来源:https://stackoverflow.com/questions/18183066/ios-dial-assist-auto-formats-local-number-to-usa-number

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