I created a manifest file with 1000 items. Safari, Mozilla browsers are saving the files offline successfully and even Android saves the files correctly offline.
On iPad and iPhone when I am trying to save more than 300 items in some point the applicationCache returns "error". When I am trying to save less (e.x.: 200) it saves the files correctly and the applicationCache returns "cached".
Any ideas?
Thank you.
According to specs,
http://dev.w3.org/html5/webstorage/#disk-space
there is no limit, but
'A mostly arbitrary limit of five megabytes per origin is recommended. Implementation feedback is welcome and will be used to update this suggestion in the future.'
in iOS 3, max size is 5M, in iOS 4.2 beta3, the browser will ask for the permission (to increase the max size of applicationCache) when downloaded files size is bigger than 5M.
Related
I am testing an App that takes images from the iPhone Camera / Photos and saves them into the App to add various notes to. All is working fine with Core Data (adding and deleting etc.) as testing of closing and reopening app shows all is ok. However, the file size of the App when checked on iPhone Settings... Storage... does not reduce back down again.
E.g.
-Empty App size is 17mb
-Adding 6 photos increases App size to 29mb
-25 photos = 84mb
-But when I delete all but 5 photos from core data the file App file size is still about 69mb.
So the iPhone is updating the size of the apps straight away under 'settings...storage', but the App itself is still hoarding data related to the photos that have been deleted from Core Data with ...
"context.deleteObject"... and "context.save()"
I'm assuming data is held somewhere on the App about the original photos that were subsequently deleted.
Thus my question is how to remove this unwanted data that is no longer relevant to the App.?
I was having the same issue, but recording videos instead. After I recorded the video and uploaded to a server, I was deleting the videos, but the size of my Documents and Data continued to increase.
After looking what contained on my Documents and Data folder I found out that the problem was that the file on /AppData/Library/Cache/(package name)/Cache.db-wal that was increasing size. Mine it went from 24kb up to 6mb. But then, stabilized on that number. No matter how many videos I took, the size was not increasing anymore.
So you can try to figure out what is going on on your side downloading the Documents and Data content, and looking which files are increasing in size. You can download it following this instruction:
1 - in Xcode, choose Window > Devices.
2- select your device on the left.
3 - select your app from the Installed Apps list.
4- use the gear menu to either browse your app's container (Show Container) or download it to your Mac (Download Container) for offline analysis.
Okay, so i've read countless places saying the app size limit is either 20 mb and some say it's 50mb... which is it?
More importantly, my current app has an "estimate app store size" of 106.1mb in the Archive section of the Organizer. HOWEVER, when I distribute it to an ad-hoc file, it comes out as a .ipa which has the size of 48.3mb. Which one should I use, and I'm confused as to why they are so different.
The official (and reliably up to date) resource for this is the Uploading Your Binary section of the iTunes Connect Guide (expand the 'To begin the Ready to Upload Binary flow' section). At the time of this edit it states:
iOS App binary files can be as large as 2 GB, but the executable file (app_name.app/app_name) cannot exceed 60 MB. However, consider download times when determining your app’s size. Minimize the file’s size as much as possible, keeping in mind that there is a 100 MB limit for over-the-air downloads.
Over-the-air download limit means apps below this threshold can be downloaded with a mobile data connection (anything above the limit requires a WiFi connection, or to be downloaded through iTunes on the computer). This is important as many users may not have ready access to WiFi and you don't want to prevent them from being able to get your app!
Also the .ipa is a compressed, encrypted zip file, whereas the archive is just a fully inflated package of the app, which is why the file sizes are different. The .ipa file size is the one that will be used in the App Store, so use that as your reference for total size. That said, the smaller you can make your app, obviously the happier the user will be!
Apple recently bumped up the size from 20 to 50 shortly after WWDC '12. I am not sure if it was officially announced, but was observed in the error message of larger apps.
Use the IPA size. The files sent from the app store are compressed. Perhaps the 106.1 is the uncompressed size, or it is a bug.
Today, Apple Increases Over-the-Air App Store Download Limit to 100MB.
Does any one know what is the max file size we can upload to a server from an iPhone app?
I could easily upload a file with size upto 10 MB but app start giving unpredictable results in uploading a video beyond this size.
Any help is much appreciated.
In general there would not be any limits on the file size from the iPhones side of view. However you might have limitations imposed on you from the server side, e.g max disk quota, etc.
You will have to implement the upload in chunks or streamed as the iPhone is limited in memory.
If you upload end read the file from disk in chucks, the limiting factor will be the server and you internet connection.
I don't think that there is a hard limit to the upload.
AFAIK, there's no limit. Just make sure that the server that you're sending the data to is configured to accept it.
To clarify, I will be uploading new app to the App Store and I want to determine what the final size for the end user will be.
Currently, unzipped build file is 22MB and little over 18MB if I zip it (as per instructions for uploading new apps). My question therefore is which file size will be shown in the store? Do users download zipped archive or unzipped app file?
Thank you for your responses.
Roger's response doesn't take into account the additional DRM that Apple adds to your applications. This will generally add at least 1 MB to the final size, and this does affect whether or not it can be downloaded over 3G.
That's not always completely correct. My zip was 19.9mb when I launched but the store read it as 20.1mb and thus it didn't qualify for anything but wifi downloading.
Try to stay away from pushing the 20mb limit...
You can take a look at My answer... The compressed size is wrong: Did Apple change their app archiving method?
i am developing a application which contains many images which appear on different buttons click and has an mp3 file too..When i checked the size of my .app file it is around 6.8 mb which i think might be too large?? is there any way i can reduce the size of my .app file though i think reducing the size of my images(already around 15kb) wont be the solution.
6.8mb is fine and is small enough that people can downloaded it over 3G (the limit is 20Mb; you need wifi if it's more)
One thing to keep in mind is sales! On any app you do now or in the future you will want to keep the total size under 20mb.
Think about how many users want to "instinctively buy" your app. They saw a friend with your app and want to download it right then and there, but ohh wait... cant do it till ya get home! LOST SALE - More than likely that person will forget by the time they get home.
In your case 6.8mb is nothing compared to many apps that are games. I've seen 200 - 300mb apps that take a while to download on wifi. (WSOP Poker , Gamebox)
Good Luck my friend!