简体   繁体   中英

How can I prevent backup for user data in flutter for iOS app?

The data storage and privacy requirements for the mobile application security verification standard states that 'No sensitive data is included in backups generated by the mobile operating system.'

How do I make sure data is not backed up in my flutter app?

For Android I put

    android:allowBackup="false"
    android:fullBackupContent="false"

In AndroidManifest.xml. How can I fix this for iOS?

Thanks!

These folders are backed up to iCloud:

  • <AppHome>/Documents
  • <AppHome>/Library/Application Support
  • <AppHome>/Library/YourDir

iCloud Backup does not copy these temp folders but your data would need to be recreatable:

  • <AppHome>/Library/Caches
  • <AppHome>/tmp

Otherwise you will need to write some native code and use isExcludedFromBackupKey , see https://developer.apple.com/icloud/documentation/data-storage/

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM