Facing error in KeyChain while trying to SaveResponse

I am facing this error 'Could not save account to KeyChain: -34018'

Following is my code

public void SaveResponse(string serviceKey, string username, string responseKey, string response)
{
var properties = new Dictionary<string, string> {{responseKey, response}};
var account = new Account(username, properties);
AccountStore.Create().Save(account, serviceKey);
}

Neither of the above fields are null. I had checked. Yet I am facing above error. PLease help

Tagged:

Best Answer

  • KarthikRamKarthikRam US ✭✭
    Accepted Answer

    I was able to resolve after changing the unique string, which I had used to store KeyChain Access. Problem was another app was also using the same string. Always, ensure 'responseKey' is unique for each app

Answers

  • KarthikRamKarthikRam USMember ✭✭

    @Ipdavies Can you please suggest about this issue

  • KarthikRamKarthikRam USMember ✭✭
    Accepted Answer

    I was able to resolve after changing the unique string, which I had used to store KeyChain Access. Problem was another app was also using the same string. Always, ensure 'responseKey' is unique for each app

Sign In or Register to comment.