[英]Enable mobile web app to open a link in user mobile default browser instead of opening inside the app
I've created a mobile web app for Android and iOS. 我已经为Android和iOS创建了一个移动网络应用。 I've installed the apk and ipa in my test phones.
我已经在测试手机中安装了apk和ipa。
However, I'm having a problem when I'm trying to open an external link that requires to open in user default browser(Safari, Chrome) 但是,当我尝试打开需要在用户默认浏览器(Safari,Chrome)中打开的外部链接时遇到问题
I've tried the following: 我尝试了以下方法:
But the links are just opening inside the Web App. 但是这些链接只是在Web App内部打开。
Default behavior of android web view is to open links using the default browser. android网络视图的默认行为是使用默认浏览器打开链接。
If you have put myWebView.setWebViewClient(MyWebViewClient); 如果已放置myWebView.setWebViewClient(MyWebViewClient); in your code then remove it as using this will open links inside application only
在您的代码中,然后将其删除,因为使用它只会在应用程序内部打开链接
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.