SecureStorage
which utilizes share preferences that are backed up and can not be decrypted when the restore occurs. Xamarin.Essentials automatically handles this case by removing the key so it can be reset, but you can take an additional step by disabling Auto Backup.android:allowBackup
setting to false in the AndroidManifest.xml
file. This approach is only recommended if you plan on restoring data in another way.SecureStore
items from being backed up.android:fullBackupContent
attribute in your AndroidManifest.xml:SecureStorage
:GetAsync
willreturn null
.SecureStorage
APIs.SecRecord
used to store the value has a Service
value set to [YOUR-APP-BUNDLE-ID].xamarinessentials.ApplicationData.Current.LocalSettings
, inside a container with a name of [YOUR-APP-ID].xamarinessentials. Generate private key from ssl certificate linux.LocalSettings
which has a restriction that the name of each setting can be 255 characters in length at most. Each setting can be up to 8K bytes in size and each composite setting can be up to 64K bytes in size.