File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
harmony/rn_webview/src/main/ets Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -431,6 +431,11 @@ export struct RNCWebView {
431431 .onConfirm((event: AlertEvent) => this.onJavascriptConfirm(event))
432432 .onDownloadStart((event: OnDownloadStartEvent) => this.webViewBaseOperate?.onDownloadStart(event))
433433 .geolocationAccess(this.descriptorWrapper.rawProps.geolocationEnabled)
434+ .onGeolocationShow((event) => {
435+ if (event && (this.descriptorWrapper.rawProps.geolocationEnabled != undefined)) {
436+ event.geolocation.invoke(event.origin, this.descriptorWrapper.rawProps.geolocationEnabled, true);
437+ }
438+ })
434439 .mediaPlayGestureAccess(this.descriptorWrapper.rawProps.mediaPlaybackRequiresUserAction)
435440 .onRenderExited((event: OnRenderExitedEvent) => this.webViewBaseOperate?.onRenderExited(event))
436441 .onLoadIntercept((event: OnLoadInterceptEvent) => this.onLoadIntercept(event))
You can’t perform that action at this time.
0 commit comments