Search code examples
iphoneiosjailbreak

Get name of iOS app from path


I'm developing an app for jailbroken iOS devices that collects statistics about installed apps (ideally stats about both App Store and Cydia apps). Given the path of an app, is there an easy and reliable way to get the name of the App (as it appears in the Springboard)? Or is there a better way, not using the path at all (ie, is the info centralized somewhere)?


Solution

  • Here is a link to a StackOverflow that shows how to get a bundle info plist value (In this case the version). How can my iphone app detect its own version number?

    I beleive the attribute you are looking for is CFBundleDisplayName.

    Here is apples list of attributes you can obtain. http://developer.apple.com/library/mac/#documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html#//apple_ref/doc/uid/10000123i-CH101-SW1