I had a function to check if chrome could be open an url. In iOS I had:
// is chrome installed??
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"googlechrome://"]])
if ([[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"googlechrome://"]])
fullPathForApplication to get an application's bundle path. If that method returns
nil, the app is not installed.
Related question: how to detect if user has an app in Cocoa