如何在Web视图中启用弹出窗口?

问题描述 投票:0回答:1

当前在应用程序中使用"react-native-webview": "^6.11.1"。加载网站时,会弹出一个窗口,需要批准。如何启用/允许Webview显示弹出窗口?

尝试过几件事:

  1. 将属性useWebKit设置为TRUE(WkWebview)和FALSE(UIWebview)
  2. 设置属性onShouldStartLoadWithRequest为每个URL返回true

更具体地说,我提到的流行音乐如下所示在台式机Chrome上运行时。应该有一个弹出窗口阻止程序通知,要求您允许弹出窗口。enter image description here

reactjs uiwebview wkwebview react-native-ios react-native-webview
1个回答
0
投票

TLDR;

© www.soinside.com 2019 - 2024. All rights reserved.