简体   繁体   English

启用移动网络应用以在用户移动默认浏览器中打开链接,而不是在应用内部打开

[英]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: 我尝试了以下方法:

  1. target="_blank" 目标=“_空白”
  2. window.open('url','_blank'); window.open( 'URL', '_空白');

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.

相关问题 ios PWA 如何在移动默认 safari 上打开外部链接(不在应用浏览器中) - ios PWA How to open external link on mobile default safari(not In app browser) 使用javascript从Web应用程序强制链接在移动Safari中打开 - Force link to open in mobile safari from a web app with javascript 在Web应用程序浏览器中打开的jQuery Mobile Web App外部HTML页面 - jquery mobile web app external HTML page open in web app browser 通过浏览器打开本机应用(非移动) - Open native app from browser (not mobile) 创建链接以在台式机的URL上打开移动应用程序 - create link to open app for mobile on URL for desktops 如何在打开链接时禁用深层链接,它不会重定向到应用程序,而是转到移动浏览器 - How can I disable deeplinks aka when opening a link, it doesn't redirect to an app but goes to mobile browser 当点击来自应用内浏览器时,是否可以在客户端默认移动浏览器中打开 URL? - Is it possible to open a URL in a client default mobile browser while the click originated from an in app browser? React Web App路由未在移动浏览器上加载 - React web app route not loading on mobile browser 在移动应用程序和 Web 浏览器上并行运行测试 - Running tests in parallel on the mobile app and web browser 如何在网站中使用 jquery/javascript 检测从 web 浏览器(chrome)或 webview(移动应用程序)打开的 url? - How to detect the url opening from web browser(chrome) or webview(mobile app) using jquery/javascript in the website?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM