The 'open' method requires an options dictionary
Otherwise, SwiftFlutterPlugin.swift throws an exception on line 285 when the InAppBrowser.openWithSystemBrowser(url) method is called: let options = (arguments["options"] as? [String: Any])!
This commit is contained in:
parent
11da457d51
commit
98316371d8
|
@ -294,6 +294,7 @@ class InAppBrowser {
|
||||||
args.putIfAbsent('isData', () => false);
|
args.putIfAbsent('isData', () => false);
|
||||||
args.putIfAbsent('openWithSystemBrowser', () => true);
|
args.putIfAbsent('openWithSystemBrowser', () => true);
|
||||||
args.putIfAbsent('useChromeSafariBrowser', () => false);
|
args.putIfAbsent('useChromeSafariBrowser', () => false);
|
||||||
|
args.putIfAbsent('options', () => {});
|
||||||
return await _ChannelManager.channel.invokeMethod('open', args);
|
return await _ChannelManager.channel.invokeMethod('open', args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue