Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7902579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T09:32:14+00:00 2026-06-03T09:32:14+00:00

I am working on an app and I am storing my data locally using

  • 0

I am working on an app and I am storing my data locally using SQLite 3. Now I will have updated versions of the same app in future and I will have to update the same using downloading and installing the new IPA file after removing it only.

But here the problem occurs. The client wants that the data stored locally in the prior version should be replaced in the newer version without using the web server.

I surfed several links and all results into negative response still I would like to know if there is any way with the help of which I can store my database outside application folder in such a way that even the removal of app does not affect the database and the newer version can fetch the data from the same database. Or any other way around? Thanks for response in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T09:32:16+00:00Added an answer on June 3, 2026 at 9:32 am

    You should store the database in the Documents folder as all the content inside it remains there even if an app is updated via the app store (If you remove the app then this also gets deleted.. so keep this in mind )

    you can create a separate folder inside the Documents folder named Database and store your file inside in.. you can create a path like this..

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); 
    NSString *documentsDirectory = [paths objectAtIndex:0]; // Get documents folder
    NSString *dataPath = [documentsDirectory stringByAppendingPathComponent:@"Database"];
    

    EDIT:

    Since you want to keep it even after the deletion of app, I don’t think you can do it on the device due to the sandboxing feature of the apps but you still you have one more option..

    You can backup this database on your personal server and every time the app is installed it should query the server if a database for that particular user exists or not. If it exists than you can download and store it in documents directory else you give him a new database. You can perform this backup every once in a while or provide a sync option for the user himself. hoping this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on an app that will be using https, but we wanted to
In the app I am working on now I was storing about 500 images
Using Visual Studio 2008 and VB.Net: I have a working web app that uses
I’m storing data that my app uses in isolated storage which is working fine.
I have created one application, where I am storing the data into database and
I have an ASP.NET web app that places several string data into an object
I'm currently working on a web app, and have been inspired by a couple
I have a social network type app I have been working on for at
I'm building an app using speech recognition.. I'm storing the last sentence in a
I'm working on a java 2ME app that submit data to mysql database (am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.