Exclude Files From The Icloud Backup With This Code In #Delphi XE8 Firemonkey On #IOS

Delphi XE8 Firemonkey Icloud Backup Flag Apple IOSIf you are deploying files with your Delphi XE8 Firemonkey apps to IOS in the Startup\Documents directory and you do not want or need them backed up to Icloud there is a code snippet you can use to turn off the backup flag. I found this code over on the German Delphi forum. The flag under IOS is called NSURLIsExcludedFromBackupKey and the Apple docs are here. You can find out more about when and how you should use this no backup flag over on StackOverflow. One example of usage is if you have a large SQLite file that you are deploying with the app and you have no need for it to backup to Icloud then you can apply this flag to the file when your app is run for the first time. This code snippet should also work with Appmethod. Here is the code snippet:

Head over and check out the full forum thread in German about the backup flag code for Delphi Firemonkey on IOS.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

One Response to Exclude Files From The Icloud Backup With This Code In #Delphi XE8 Firemonkey On #IOS

  1. Dennis says:

    Just don’t store anything in StartUp\Documents – it’s not the place to store static data

Leave a Reply

Show Buttons
Hide Buttons
Read previous post:
Track App Usage With Analytics Components In #Delphi XE8 Firemonkey On #Android And #IOS

Developer Luis Navarro from Embarcadero has a blog post up that explains how to setup the new TAppAnalytics component from...