Search code examples
iosxamarinlocalizationcncontactviewcontroller

CNContactViewController discard message Xamarin


I have same issue as described in this post

CNContactViewController iOS 13 Discard Message and Keyboard

but i'm working with xamarin and i've added Localizable.strings like this:

enter image description here

and content in this file:

enter image description here

Any way I still cannot make it work and accepted answer in the link above does not work for me.

What am I doing wrong?

UPD:

the problem is that the text of discard action sheet looks like this and it is not human readable. adding Localizable.strings into Base.lproj didn't help

enter image description here


Solution

  • ok, after long search, i`ve found a solution.

    to make it work i've added to info.plist values described in official xamarin documentation. https://learn.microsoft.com/en-us/xamarin/ios/app-fundamentals/localization/

    enter image description here

    and now it works perfectly. but it is not obvious solution

    PS: and for the future, Dear commentators, don't answer in such manner: "I created a new project and just open the CNContactViewController, everything works well on my side. I can't reproduce the issue" - It doesn't bring any useful information. better no answer than answer like this.