How can I detect if user has an app, like echofon or twitter for mac or if user has pages, or textmate? Any suggestions?
Finally, call navigator. getInstalledRelatedApps() to check if your Android app is installed.
Use NSWorkspace's fullPathForApplication: to get an application's bundle path. If that method returns nil, the app is not installed. For example:
NSString *path = [[NSWorkspace sharedWorkspace] fullPathForApplication:@"Twitter"];
BOOL isTwitterInstalled = (nil != path);
URLForApplicationWithBundleIdentifier is another method you may use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With