raw3d
raw3d

Reputation: 3515

iOS dial assist auto formats local number to USA number

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

Upvotes: 1

Views: 5488

Answers (1)

Daij-Djan
Daij-Djan

Reputation: 50089

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

Upvotes: 1

Related Questions