Hello,
Welcome to our Microsoft Q&A platform!
iOS has its own Application Sandbox to restrict access to system resources and user data in apps to contain damage if an app becomes compromised, and the contents are backed up by iTunes. I'm afraid there is no such attribute to disable backups like Android, but there are three directories under the application : Documents, Library, tmp. The contents of tmp directory are not backed up by iTunes, the contents of Library directory are never exposed to the user via iTunes, you could also set UIFileSharingEnabled
key false
to the Info.plist
file to disable users to access Documents files. For more details, you could refer to https://learn.microsoft.com/en-us/xamarin/ios/app-fundamentals/file-system#application-directories
In addition, you could set the SkipBackup
attribute on a file, it will inform the operating system that this file should not be backed up into iCloud. For more details, refer to https://learn.microsoft.com/en-us/dotnet/api/foundation.nsfilemanager.setskipbackupattribute?view=xamarin-ios-sdk-12
Best Regards,
Wenyan Zhang
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.