Friday, February 3, 2023
HomeiOS Developmentauthentication - XAMARIN :: Robust password era iOS not saved in keychain

authentication – XAMARIN :: Robust password era iOS not saved in keychain

In my xamarin utility there may be the choice to create a person. Now that i’ve my related domains setup correctly, iOS prompts the person with the query if he desires to make use of a powerful password for his account and to retailer it in his key chain. This isn’t construct within the app, however some iOS function. Now i’ve the issue that after registering with a powerful password, the password will not be save within the keychain nor does it immediate when the person wish to login. Drawback is, the person doesn’t know its password and can’t login after he logged out. I’ve this on all iOS gadgets in testflight and within the reside utility.

What might be the issue, or can somebody information me in a path the place i might discover a solution?

I attempted to tinker with some customized code to repair it. however

            if (!NSUserDefaults.StandardUserDefaults.BoolForKey("FirstLaunch"))
                // Delete the keychain gadgets on first launch so after a reinstall the secret is gone
                // Tried all types of mixture of securityRecords
                var securityRecords = new[] {

                foreach (var recordKind in securityRecords)
                    SecRecord question = new SecRecord(recordKind);
                    // For now as a take a look at disable this. So we will test if keychain password will get saved once more. Unsure if first launch bool get accurately saved
                    //SecKeyChain.Take away(question);

                // Mark that the app is first launched
                NSUserDefaults.StandardUserDefaults.SetBool(true, "FirstLaunch");



Please enter your comment!
Please enter your name here

20 − three =

Most Popular

Recent Comments