We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 347789e commit 8b7567aCopy full SHA for 8b7567a
1 file changed
Plugins/Native/Implementations/NativeUI.mm
@@ -25,10 +25,9 @@ +(void)OpenUrl:(NSString *)url
25
NSURL * nsUrl = [NSURL URLWithString:url];
26
27
if(nsUrl == nil)
28
- {
29
return;
30
- }
31
- [[UIApplication sharedApplication] openURL:nsUrl options:@{} completionHandler:nil];
+ if([[UIApplication sharedApplication] canOpenURL:nsUrl])
+ [[UIApplication sharedApplication] openURL:nsUrl options:@{} completionHandler:nil];
32
}
33
34
+(void)SafariViewFromUrl:(NSString *)url onCompletionCallback:(CompletionCallback)callback
0 commit comments