Sam B
Sam B

Reputation: 27618

Installed App Sizes Vs Appstore app sizes

Here is a question that had been bothering me. The other day I checked my wife's phone and pinterest app was eating up 2 GB of space while the actual app in the appstore is 26.8 MB. I know there must be user / log / crash data that is dumped in its apps document directory but that got me thinking how many other apps on her phone had large amount of user data stored compared to what the app size is in appstore.

So here are my questions of how to do all this using objectiveC

  1. Sample Xcode iHasApp display's all the available apps installed on a device. Is there a way I check how much space they are taking in GB/MB etc?

  2. Is there a way I can go query that app build size in appstore and tell the user hey its only X MB in appstore?

  3. I know I can get to all the app installed on a device is there a way I can check when was an app last launched or used by a user?

  4. Can I check how much space photo / video and music is taking up?

What I am trying do in the end is to see if I can make an app that shows user what they got installed on their device and make some informed decisions themselves.

So far all I am able to find is how to check total used and free space on a device and get a list of all apps installed.

Upvotes: 3

Views: 569

Answers (1)

user149341
user149341

Reputation:

Sample Xcode iHasApp display's all the available apps installed on a device. Is there a way I check how much space they are taking in GB/MB etc?

No. The APIs being used by iHasApp can only be used to check whether selected applications are present -- basically, all you get to ask "is ThisApp installed?", and you can build up a partial list of installed applications by running that check for a large number of common applications.

There is no way to get launch or disk usage information for other applications. I'm not sure last launch is even tracked at all by the device.

With this in mind, most of your other questions are irrelevant. It is not possible to do what you're after from an iOS application.

Upvotes: 2

Related Questions