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 Install App Overwrites Previous Data

IOS Install App Overwrites Previous Data

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 915 Views
  • 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 install my Qt iOS app. After the install the software tells the user to download some data required. It goes away and does that no problem.

    If for some reason, they decide to re-install the app (without deleting it), the previous data gets deleted.

    Do I just need to tell my users not to do that, and is that normal?

    If I increment the version number for the next build, will it allow the software to update without destroying the data?

    I have had a good look through the previous questions and cannot find anything.

    Thanks, Carl

    1 Reply Last reply
    0
    • GianlucaG Offline
      GianlucaG Offline
      Gianluca
      wrote on last edited by
      #2

      Where you save the app data ??
      The Documents folder with all its content is preserved during re-installation and updates of the app. So, I suspect your are writing in a different place.

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

        I save the app data in:

        @
        QStandardPaths::writableLocation(QStandardPaths::HomeLocation);
        @

        then create a folder with my appname. I have found the problem, when the app gets installed or updated, it gets a new folder name e.g.

        /var/mobile/Applications/76CF7510.........../Documents/MyAppSaveLocation

        I was saving the hardcoded path.

        Anyone got a clever way of doing this. Another problem is I want the same code to work for Android, which will allow the user to change to an SD card if needed.

        Thanks, Carl

        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