Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. IOS How do I prevent files from being backed up to iCloud and iTunes
Forum Updated to NodeBB v4.3 + New Features

IOS How do I prevent files from being backed up to iCloud and iTunes

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 3 Posters 3.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    carlinski
    wrote on last edited by
    #1

    I am going through the process of trying to get my app on to the Apple App Store. After several rejections, here is one that has stumped me...

    My App, when it first opens gets a file out of its own qrc resource file and puts it in the documents folder (sandboxed of course, so it will get removed when app is uninstalled).

    Apple have rejected because this file should not get backed up by iCloud, because it wasn't created by the user, but the App.

    Is there any way of suggesting that the file should not get backed up by iCloud?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Did you try using the TempLocation or DataLocation from QStandardPaths ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        carlinski
        wrote on last edited by
        #3

        No, I used DocumentLocation, whoops! I guess DataLocation would be best in this case. Are we saying that DataLocation won't get backed up by iCloud?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          carlinski
          wrote on last edited by
          #4

          Sorry, just looked at the code, this is what I use:

          @
          QDir dir = QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation);
          @

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #5

            I don't say it, it's just an idea to try. "Here":https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html you can find more information about how the file system can/should be used

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            0
            • C Offline
              C Offline
              carlinski
              wrote on last edited by
              #6

              It seems as though the only place to put data that won't get backed up is Library/Caches. But it does suggest that the system could delete the contents of it to free up disk space (on rare occasions).

              Application Support seems perfect, but that is also backed up.

              1 Reply Last reply
              0
              • U Offline
                U Offline
                uTMY
                wrote on last edited by
                #7

                Not sure about doing it in Qt but in objective-c you can set a flag on a file to tell it not to back up to the cloud, and yes Apple will clear out your data under certain conditions, test and replace your files if needed.

                Rgds

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  You can mix Objective-C code and C++. Qt uses that technique for it's OS X/iOS part.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • Users
                  • Groups
                  • Search
                  • Get Qt Extensions
                  • Unsolved