iOS dial assist auto formats local number to USA n

2019-04-16 18:53发布

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条回答
萌系小妹纸
2楼-- · 2019-04-16 19:36

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

查看更多
登录 后发表回答