Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 726
Merijn Mestdagh Avatar asked Mar 29 '20 12:03

Merijn Mestdagh


People also ask

Is Flutter stable for iOS?

We have all of the six major platforms – iOS, Android, web, Windows, macOS, Linux – all supported as stable parts of the Flutter framework."

Where is iOS app data stored?

Go to Settings > General > [Device] Storage. You might see a list of recommendations for optimizing your device's storage, followed by a list of installed apps and the amount of storage each one uses. Tap an app's name for more information about its storage. Cached data and temporary data might not be counted as usage.

How do iOS apps store data?

When you set up iCloud for a third-party app, your app data is stored in iCloud instead of locally on your device. Because your data is stored in the cloud, it stays up to date anywhere you've set up iCloud for the app, including your iPhone, iPad, iPod touch, and Mac.

Does Flutter apps work on iOS?

Flutter is designed to support mobile apps that run on both Android and iOS, as well as interactive apps that you want to run on your web pages or on the desktop.


Video Answer


1 Answers

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/

like image 83
Alan Avatar answered Oct 21 '22 23:10

Alan