我正试图在inAppBrowser中打开url,但onShouldStartLoadWithRequest不适用于android。我尝试将setSupportMultipleWindows设置为false,还使用了onNavigationStateChange,但两者都没有按预期工作。有什么办法吗?
const onShouldStartLoadWithRequest = (request: WebViewNavigation) => {
if (request.navigationType === 'click') {
console.log('clicked')
openInAppBrowser(request.url);
return false;
}
return true;
};