Can anyone think of an explanation for a case where openURL returns false but the app is opened successfully?
NSString *appUrlPathStr = @"";
NSURL *appUrlPath = [NSURL URLWithString:appUrlPathStr];
if([[UIApplication sharedApplication] canOpenURL:appUrlPath]) {
if ([[UIApplication sharedApplication] openURL:appUrlPath]) {
NSLog(@"app opened");
} else {
NSLog(@"app not opened");
}
}
Note: did not include the url string itself in the code here.