简体   繁体   中英

Can I get list of my company's installed apps on device?

I want to know that is it possible in iOS that one could get list of installed applications uploaded by same company?? If yes, then what would be the code???

I know that it's restricted to get list of installed apps in iOS. But I want to know that which of my applications are installed on user's device? So, does Apple allows to get list of own installed apps??

If you did some planning in advance and gave each app it's own URL scheme then you could check if each scheme in turn was openable by the app and count the number that were. But if your apps don't have defined schemes then no, you can't.

Well for the Second part of your question. Yes you can get the list of apps installed in your device using

-(void) allInstalledApp
{    
    NSDictionary *cacheDict;    
    NSDictionary *user;    
    static NSString *const cacheFileName = @"com.apple.mobile.installation.plist";    
    NSString *relativeCachePath = [[@"Library" stringByAppendingPathComponent: @"Caches"] stringByAppendingPathComponent: cacheFileName];    
    NSString *path = [[NSHomeDirectory() stringByAppendingPathComponent: @"../.."] stringByAppendingPathComponent: relativeCachePath];    
    cacheDict    = [NSDictionary dictionaryWithContentsOfFile: path];    
    user = [cacheDict objectForKey: @"User"];    
    NSDictionary *systemApp=[cacheDict objectForKey:@"System"];
}   

The systemApp Dictionary contains the list of all system related app and user Dictionary contains other app information.

According to your First part of the question , you cannot directly get the list of apps for a particular company . But You could show a constant URL of the Apple store site to the user in a UIWebView or outside the app in Safari . This URL would have the list of all the apps. Also if you have the list of the URL's your app's loaded on the Apple store . then you could show them individually in the browser too.

no, nothing You ask is possible, of technical and local reasons. You can see some details only on YOUR devices you configured with IPCU or similar tools, (MDMs..) but not in code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM