Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS CallKit: CXProviderConfiguration localizeName is deprecated

Tags:

swift

callkit

Currently, CXProviderConfiguration localizeName is deprecated. https://developer.apple.com/documentation/callkit/cxproviderconfiguration

let configuration = CXProviderConfiguration(localizedName: "Call")
=> 'init(localizedName:)' was deprecated in iOS 14.0

How can I set its localizeName now? I want to show the name("Call") in the right-bottom.

enter image description here

like image 342
kimihom Avatar asked Dec 04 '25 14:12

kimihom


1 Answers

If I understood correctly your question, you want to display a custom string below the button with your app icon in the CallKit UI.

Contrary to what I thought and wrote in the comment, the localizedName of CXProviderConfiguration, prior to iOS 14 was used as the label of the button mentioned above.

On iOS 14 and above, instead, is the Product Name that's used for that purpose. You can find it in the build settings of your target, and by default, it's equal to your target name. Keep in mind that it's also the string displayed below your app icon on the home screen.

like image 128
Marco Avatar answered Dec 07 '25 07:12

Marco



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!