Xamarin iOS - Disable Back up and Restore for Application

Viewed 132

I know Android and iOS can back up app’s data files, the backup data is then allowed to be transferred from old device to new device.

For android, I understand that we can disable backups for your application with <application android:allowBackup="false" ... in AndroidManifest.xml file. I wonder if iOS has the same?

1 Answers

The backup scheme on iOS is more complicated than on android. There is no simple attribute such as android:allowBackup="false" to disable the backup feature globally.

we could use the SetSkipBackupAttribute function to control whether backup my files.

NSFileManager.SetSkipBackupAttribute (filename, true); // backup will be skipped for this file

Detailed info is here.

Related