diff --git a/src/ios.rs b/src/ios.rs index b8845ad..1c0067a 100644 --- a/src/ios.rs +++ b/src/ios.rs @@ -41,8 +41,11 @@ pub(super) fn open_browser_internal( return Err(Error::new(ErrorKind::Other, "NSURL URLWithString failed")); } + let no_options: *mut Object = msg_send![class!(NSDictionary), new]; + + let nil: *mut Object = ::core::ptr::null_mut(); // Open url - let () = msg_send![app, openURL: url_object]; + let () = msg_send![app, openURL:url_object options:no_options completionHandler:nil]; Ok(()) } }