Forum Xamarin.iOS


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Who can translate this code into C#?

binbin.9006binbin.9006 CNMember ✭✭

        vpnProtocolIKEv2.sharedSecretReference = JFKeychain.searchCopy(matching: "VPN_PSK")

How to set the key code of shared key?


  • binbin.9006binbin.9006 CNMember ✭✭
                        ipsec.SharedSecretReference =NSData.FromString("666888") ;

    I don't know how to set it. IOS code doesn't translate.

  • ColeXColeX Member, Xamarin Team Xamurai

    Firstly you should translate JFKeychain class , convert the implementation from swift to C# .

    Or create binding library with the class , make it available from xamarin project .

    Xamarin forums are migrating to a new home on Microsoft Q&A!
    We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
    For more information, please refer to this sticky post.

Sign In or Register to comment.