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 6948717
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:51:34+00:00 2026-05-27T13:51:34+00:00

I’m working on an iPhone app with inApp payment: whenever the user pays a

  • 0

I’m working on an iPhone app with inApp payment: whenever the user pays a small sum, he receives an update of the application. The “update” is a sort of new “chapter” in an adventure game and it is made of text and xml files, images, sounds and so on, generically “assets”. When the assets are downloaded, they form the content of a new chapter (or stage, or step) inside the application.

I’m looking for advices on how to load all this data: for example, the device, while downloading, could accidentally stop working (low battery, etc.) or it could disconnect for some reason. This way, the integrity of the update would be lost. I researched a little and found solutions with md5 checksum or sockets, but I wanted to ask here too, before starting anything. For example, I wanted to know if it is a good idea to download a big zip file or it would be better to download small uncompressed files.

Any advice is appreciated. Thank you.

  • 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-05-27T13:51:35+00:00Added an answer on May 27, 2026 at 1:51 pm

    I have a similar setup, and what I do is maintain a database of items installed. I also have a separate list of items available which is updated from my server periodically.

    When the user buys one, the item is copied from the “available” list to the “installed” list with a status of “purchased”. It then goes into a download queue.

    After it’s downloaded, the status is moved to “downloaded” and some installation is done. Then the status is finally updated to “installed”.

    I protect against interruptions by having the app check when it starts (or is unbackgrounded) for any items in the “installed” list that don’t have a status of “installed”. And depending on the status, I either restart the download or redo the installation.

    As for file integrity, I just check for a known header, but an md5 or other checksum would be better.

    Update: My app only downloads a single file (sqlite database), so if it gets interrupted it has to start over from the beginning. I enabled deflate on my web server, which NSURLConnection supports, so compression is done transparently. But I’m sure your interest in using a zip file is primarily to make downloading simpler. I had considered using a zip file at one point too, but I was unable to find an easy way to extract it.

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
I used javascript for loading a picture on my website depending on which small
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I need to clean up various Word 'smart' characters in user input, including but
I am writing an app with both english and french support. The app requests
I am using Paperclip to handle profile photo uploads in my app. They upload
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
That's pretty much it. I'm using Nokogiri to scrape a web page what has

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.