Experience updating app, keeping user data, and extending SQLite tables?

We're updating an application in the App Store, and haven't yet found good information on how to deal with updates to the SQLite Schema and data that should be transferred between apps.
Anyone successfully done this?
Q1: Does the old DB files stay on the iPhone after update? Does the installer do a "diff" between them? In our case, we just extended tables, rather than changing them, in hope that we can successfully move the data for users gracefully.
Q2: If the installer does in fact wipe all the data and files on the app before install, is there a way to access the data before it updates, so the app can gracefully update the data?

Would you mind sharing your solution?
I've implemented it by using the PRAGMA SQL statements to query the table structure, and if it's missing the column I need for the new version, adding it.
The bigger problem, though, is some of my users have experienced their data being deleted when they received an updated version from the app store.

Similar Messages

  • HT203066 Health App keeps resetting data and dashboard view

    Health up on my iPhone 5s (iOS v8.1.2) keeps resetting the data and dashboard views:
    - when I enter data in the 'Me' tab (Birthdate, Sex, Blood type), the data keeps disappearing when opening the application again
    - adding a dashboard (i.e. 'Weight') the dashboard shows (with no values) and disappears again
    - adding a data point in any dashboard manually does not show.
    Also - I am using MyFitness Pal & Withings Health App - no data is showing.
    I recently re-installed the phone as new (couple of weeks ago), I re-installed the third party apps (and deleted all data when asked)
    Any hints, pointers?
    Thanks in advance

    I'm having the exact same problem. I've even tried:
    1. Turn off all syncing by theirs-party sources.
    2. Delete all third-party apps that might sync data so that the Health App "Sources" list is empty
    3. Reset all settings on the phone.
    4. Reload third-party apps one by one
    5. Selectively turn on syncing by third-party apps and only sync categories I really want to see.
    All to no avail. The Health App crashes constantly and when trying to input data into third-party apps, those apps will crash also.
    I'm currently trying to sync data with:
    UP by Jawbone (UP24)
    Withings HealthMate (Withings WiFi scale)
    MyFitnessPal
    Runtastic
    Nike+

  • HT1338 My Update for OS 10.8.4 is not updating. The update app keeps saying to update the same information and it never updates.  Help

    My Update for OS 10.8.4 is not updating. The update app keeps saying to update the same information and it never updates.  Help

    Exactly the same for me.  Have tried to update three times and my iMac has restarted (after apparently downloading the update) but the update has not been installed.
    My iMac is still at 10.8.3.

  • I have an iPhone 4 and I want to upgrade it to iOS 5. Is there any way that I can upgrade the iOS and keep my data and apps?

    I have an iPhone 4 and I want to upgrade it to iOS 5. Is there any way that I can upgrade the iOS and keep my data and apps?

    why would you think you'd lose them?

  • My iphone 5 wont let me update apps keeps popping up with old apple id how do i fix this

    my iphone 5 wont let me update apps keeps popping up with old apple id how do i fix this??

    All apps downloaded/purchased are tied to the apple ID used to download/purchase them.
    If you change your Apple ID and do not wish to use the old apple ID and password to update them, you have to delete them and redownload or buy them under the new apple ID.

  • Updated to Yosemite, no problem.  now iPhoto and iMovie won't open.  Says I need to update software however, when i try to update indicates my User ID and PW won't work for these two pieces of software.  User ID and PW works everywhere else.

    Updated to Yosemite, no problem.  now iPhoto and iMovie won't open.  Says I need to update software however, when i try to update indicates my User ID and PW won't work for these two pieces of software.  User ID and PW works everywhere else.

    I am having the same problem.  I even changed my password and updated all of my security information.  Now it just gives me an error and retry message, which of course also does not work.  Went to support and was going to open a chat (seemed the simpler option) and received a message that my support has expired for this serial number unless I want to pay $29.00.  So I chose the option to call later, which was the exact time suck I was trying to avoid.  Why wouldn't the new operating system also update the apps that were already part of my old platform?

  • How do I clear updated apps listed by date in the Updates section of the App Store app?

    How do I clear updated apps listed by date in the Updates section of the App Store app?

    Hi rowiny,
    depending on what exactly you mean with "clear", it is a bug. See this thread: App Store Updates Do Not Clear
    If you update your App's via iTunes, and not "over the air", the badge count on the AppStore-app icon is wrong, and the list shows "available updates" that you can open in the new version. The listing under "Updated #date#" lists only updates that were done OTA in the last month.

  • I'm looking for an application which i can keep my data and password safe in my iphone

    i'm looking for an application which i can keep my data and password safe in my iphone

    Look in the App Store on your iPhone 5S.
    What 'data' and 'password' are you trying to keep safe?
    Your data is best kept safe by regular backups to iCloud (which are only accessible via your Apple ID & password) or iTunes (which is stored locally on your computer, which has numerous security methods, including the ability to encrypt the iTunes backup).

  • [svn:cairngorm3:] 17781: small updates to keep the flex4 and flex3 build running:

    Revision: 17781
    Revision: 17781
    Author:   [email protected]
    Date:     2010-09-21 03:06:17 -0700 (Tue, 21 Sep 2010)
    Log Message:
    small updates to keep the flex4 and flex3 build running:
    still TODO: circular refrences in PopUp lib when flex3 compiling.
    Modified Paths:
        cairngorm3/trunk/libraries/Contract/.actionScriptProperties
        cairngorm3/trunk/libraries/IntegrationParsley/.actionScriptProperties
        cairngorm3/trunk/libraries/Module/.actionScriptProperties
        cairngorm3/trunk/libraries/Module/.flexLibProperties
        cairngorm3/trunk/libraries/Navigation/.actionScriptProperties
        cairngorm3/trunk/libraries/Navigation/.flexLibProperties
        cairngorm3/trunk/libraries/NavigationParsley/.actionScriptProperties
        cairngorm3/trunk/libraries/NavigationSpringAS/.actionScriptProperties
        cairngorm3/trunk/libraries/NavigationSpringAS/.project
        cairngorm3/trunk/libraries/NavigationSwiz/.actionScriptProperties
        cairngorm3/trunk/libraries/Popup/pom.xml
        cairngorm3/trunk/libraries/lib-parent/pom.xml
    Property Changed:
        cairngorm3/trunk/build-parent/
        cairngorm3/trunk/libraries/IntegrationParsley/
        cairngorm3/trunk/libraries/NavigationSpringAS/

    Revision: 17781
    Revision: 17781
    Author:   [email protected]
    Date:     2010-09-21 03:06:17 -0700 (Tue, 21 Sep 2010)
    Log Message:
    small updates to keep the flex4 and flex3 build running:
    still TODO: circular refrences in PopUp lib when flex3 compiling.
    Modified Paths:
        cairngorm3/trunk/libraries/Contract/.actionScriptProperties
        cairngorm3/trunk/libraries/IntegrationParsley/.actionScriptProperties
        cairngorm3/trunk/libraries/Module/.actionScriptProperties
        cairngorm3/trunk/libraries/Module/.flexLibProperties
        cairngorm3/trunk/libraries/Navigation/.actionScriptProperties
        cairngorm3/trunk/libraries/Navigation/.flexLibProperties
        cairngorm3/trunk/libraries/NavigationParsley/.actionScriptProperties
        cairngorm3/trunk/libraries/NavigationSpringAS/.actionScriptProperties
        cairngorm3/trunk/libraries/NavigationSpringAS/.project
        cairngorm3/trunk/libraries/NavigationSwiz/.actionScriptProperties
        cairngorm3/trunk/libraries/Popup/pom.xml
        cairngorm3/trunk/libraries/lib-parent/pom.xml
    Property Changed:
        cairngorm3/trunk/build-parent/
        cairngorm3/trunk/libraries/IntegrationParsley/
        cairngorm3/trunk/libraries/NavigationSpringAS/

  • Hi I am having problems downloading and updating apps on my iPad and iPhone. The message cycles between waiting and loading then I get an error message saying unable to download app. Eventually,after many attempts it works.

    Hi Guys - for a few days I have been having problems downloading and updating apps on my iPad and iPhone. The message cycles between waiting and downloading then eventually says unable to download app. Sometimes after many attempts it wil eventually work. I tested it on an old iPhone 3G and got the same problem so it is not an iOS 5 issue. My WI-FI connection is working fine. I was wondering if this is an App Store problem? Anyone else in the UK having this problem?

    Hi John
    iTunes Support wasn't of any use to me.
    I have also been having another problem - with BBC iPlayer and other video streaming not working due to insufficient bandwidth, despite my overall download speed being consistently around 50Gb.  This is also affecting AppleTV downloads
    I am using Virgin Media as my ISP, and was wondering whether you do as well.  This might be the common thread.
    -Bernard

  • Cant update apps. asks for password for another account i had on a dell notebook. either i forgot the pass word or its not taking it. i can download apps,music with present mac note book but not apps. how can i update apps on my mac and iphone 4?

    cant update apps on my mac or iphone4. asks for password for another account i had on a dell notebook. either i forgot the pass word or its not taking it  . i can download apps and music.  how can i update apps on my mac and iphone 4?

    I had the same problem today and was able to resolve it without having to do a restore or reset. The problem had something to do with my mail accounts. The upgrade reset my mail settings, switching both my gmail and my .mac mail to "archive all mail". I went into the General Settings, disabled that setting, and resynced the phone. The "other" storage allottment dropped back down to less than a gig.
    Before you restore or reset, I would try that first.

  • I have LR from 2 through 4.4,  I am simply trying to adjust CR2s, and convert the them JPEG.  LR says my Perfectly Clear is expired but my update is up to date and all paid for.  What is Perfectly Clear and how do i get this puppy to be part of the team?

    i have LR from 2 through 4.4,  I am simply trying to adjust CR2s, and convert the them JPEG.  LR says my Perfectly Clear is expired but my update is up to date and all paid for.  What is Perfectly Clear and how do i get this puppy to be part of the team?

    Perfectly Clear is a 3rd party commercial plugin for Lightroom.
    http://www.athentech.com/products/plugins/
    Have you ever installed it as a trial in the past?

  • In the numbers app, using the "date and time" function, is it possible to remove the time? I need to put together a list of dates, but I don't need or want times.

    In the numbers app, using the "date and time" function, is it possible to remove the time? I need to put together a list of dates, but I don't need or want times.

    When formatting your column to date/time, pick Date & time, and then pick the letter i in the circle to the right. Then scroll down and pick "No time"
    Jason

  • To extend SAP user date and to add months to the current date

    Hi All,
    I need to extent the user date in SAP based on one condition.
    If the condition is true extend the date by 12 monthd if false 6 months from the current date.
    Can i have the FM for user date extentions and FM for getting the date.
    Thanks,
    Chandu.

    Hi ,
    You can use this FM for exteding the date.
    CALL FUNCTION 'BAPI_USER_CHANGE'
        EXPORTING
          username   = us_username
          logondata  = e_bapilogond
          logondatax = e_bapilogondx
        TABLES
          return     = i_return.
    u need to pass date and correspoing flag also.
    For extension of the date by months u can use this FM.
          CALL FUNCTION 'MONTH_PLUS_DETERMINE'
            EXPORTING
              months  = 6 or 12 ( depending up on ur logic)
              olddate = sy-datum
            IMPORTING
              newdate = us_expdate.
    Thanks and regards.
    Sham

  • Moving all user data and applications

    Ok,  so my previous problem was moving from an old HD to a new one.  Now I know how to do that by booting to the HD Recovery Disk and using Disk Utility.  The problem I have is that DU won't move my files from the 2TB to the 1TB because it says the 1TB has enough space.  I know for certain that the files on the 2TB are totalling less than 1TB by using "get info."
    So my question is two-fold:
    1.  Why would it not allow me to move it?
    2.  Is there a way to just move the OS, applications, and user information (ie logins, passwords, bookmarks)?  I can manually move the documents, photos, music, and videos to a third hard drive temporarily.  What if I installed OSX Mavericks on the new 1TB hard drive first, could I then port the applications and user info?

    Use Carbon Copy Cloner to migrate an OS or selectively move user files and data to a new drive.
    Depends on what the 1TB drive has on it. DU would not do a smart update, it would want to erase and restore or install a new system. 
    Erase and clone. Or erase and install. Setup Assistant afterwards can import files, but many of us want to isolate the user from the syst em and have each on separate drives, less I/O contention, better performace. One drive does not need to wait on the other.
    How to relocate system and user data to another drive:
    http://support.apple.com/kb/HT4337
    http://chris.pirillo.com/how-to-move-the-home-folder-in-os-x-and-why/
    I would hope folks save the system inst aller first before running the install or update so they don't need to redownload again.
    How to clone your system:
    http://macperformanceguide.com/Mac-HowToClone-backup.html
    http://macperformanceguide.com/Mac-HowToClone.html
    http://www.macupdate.com/app/mac/7032/carbon-copy-cloner
    http://www.macperformanceguide.com/blog/2012/20120711_2-MacPro-internal-clone-ba ckup.html
    Using Cloning as a Backup Strategy
    http://www.bombich.com/
    Create an OS X Lion Install disc
    OS X Lion Install to Different Drive
    How to create an OS X Lion installation disc MacFixIt
    Migration Assistant Update for Mac OS X Snow Leopard
    http://www.apple.com/support/lion/installrecovery/
    http://reviews.cnet.com/8301-13727_7-20080989-263/how-to-create-an-os-x-lion-ins tallation-disc
    http://www.coolestguyplanettech.com/how-to-make-a-bootable-osx-10-8-mountain-lio n-disc-or-drive-from-the-downloaded-mountain-lion-app/

Maybe you are looking for

  • How to create lead follow up opportunity....

    Hello, How to create lead follow up opportunity automatically... Also my clients need is when we change the status of Lead from Open or In-Process or Won to Completed then an automatic email should go to the employee responsible in the lead. Please h

  • How do I remove a song from my ipod that has been removed from itunes but still appears on my ipod

    I have an ipod touch and my problem is how to remove songs from it when they have been removed from itunes. After synching the songs still appear on the ipod. How can I fix this?

  • Rollover Animation Problem

    So im creating a flash website and for some reason my rollover on some of my buttons is acting up. If you try the first blue one, it works fine but by the end, the purple and yellow, only one star appears! I have no clue whats going on! :( http://www

  • Use of Certificate for secure communication

    Hi Friends, Our partner has provided there certificate to us and we had provide our certificate to them, Now while sending message to partner,which certificate I need to attach, our certificate or the certificate provided by partner? Also please prov

  • Need to update Enddate on Garnishment Doc and G ordr usg BDC in trans PA30

    Hi I have done the Record which changes the end date on the garnishment Doc and Garnishment Order in transaction PA30. But i need to run a program in a batch which will read the data from a flat file and update all the employees above date. Now i got