Reputation: 576
I want to get the list of apps installed and its usage on iOS device. I have searched for this and found few solutions.
Few other links I have tried
Getting global list of all ios apps
https://stackoverflow.com/questions/2689711/itunes-app-store-api
how to get the list of apps Name installed in the iPhone
But nothing helps
Please can someone assist if you know, I don't mind using private frameworks to get the list of apps installed and its usage.
Upvotes: 2
Views: 1993
Reputation: 175
You can do it by using SpringboardServices framework. First download headers file for this framework and link the framework into your project, then simply implement these lines of code:
CFArrayRef SBSCopyApplicationDisplayIdentifiers(bool onlyActive, bool debuggable);
int main() {
char buf[1024];
CFArrayRef ary = SBSCopyApplicationDisplayIdentifiers(false, false);
for(CFIndex i = 0; i < CFArrayGetCount(ary); i++) {
CFStringGetCString(CFArrayGetValueAtIndex(ary, i),buf, sizeof(buf), kCFStringEncodingUTF8);
printf("%s\n", buf);
}
return 0;
}
It'll return the list of installed apps in your devices. However, these methods cannot work on iOS 8, I'm still working around with it now. If you know any replacement for this in iOS 8, please share. The answer I found it from here https://stackoverflow.com/a/15342129
Upvotes: 1