App to support iPhone 12 has dual-sim cards

iPhone 12 has dual-sim cards, in iOS System, set Secondary sim card as main,

then in App, objective-c, use [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:12345"] options:@{} completionHandler:^(BOOL success) to make a call, iOS System will still use the First sim card to call.

If making a call directly in iOS system dial panel, it will use the Secondary sim card to call.

Why? How to solve this?

It seems this is related to iOS System history call records.

If last call was made by First card, even in iOS System Secondary sim card is set as main, when App making a new call, will use First sim card to call.

Can you reproduce this without your app involved? That is, if you put a tel URL into some built-in software, like Notes, does it behalf the same?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

App to support iPhone 12 has dual-sim cards
 
 
Q