diff --git a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/WebViewChannelDelegate.ets b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/WebViewChannelDelegate.ets index 0e9f008a8d34452294787781a88a289bb5a72868..84ce295e9dd8c7bf613054751691dbde77e8c2a1 100644 --- a/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/WebViewChannelDelegate.ets +++ b/flutter_inappwebview_ohos/ohos/src/main/ets/components/plugin/webview/WebViewChannelDelegate.ets @@ -812,7 +812,7 @@ export default class WebViewChannelDelegate extends ChannelDelegateImpl { } let obj: Map = new Map(); obj.set("origin", origin) - channel.invokeMethod("onGeolocationPermissionsShowPrompt", obj); + channel.invokeMethod("onGeolocationPermissionsShowPrompt", obj, callback); } public onGeolocationPermissionsHidePrompt(): void {