通过 Instagram 或 Facebook 打开的链接会在应用程序内浏览器中打开,但我网站的某些功能无法在应用程序内浏览器中使用。我如何在移动系统浏览器中打开它。
我尝试执行以下操作,但不起作用。
window.open("https://google.com", "_system")
应用内浏览器也破坏了我的一个网站。
我仍然希望 Android 和 iOS 设备开发人员在应用内浏览器方面能够为 Web 开发人员提供更好、更周到的工作。
没有更优雅的解决方案来检测应用内(在 iOS 和 Android 上)并重定向到默认浏览器(在 iOS 上),这是一个巨大的问题。
我的 Android 解决方案
window.location = "intent:https://example.com#Intent;end";
<a
href="intent:https://example.com#Intent;end"
target="_blank">
Open Browser
</a>
我对 iOS 的唯一解决方案是提供一个网站,并提供在新浏览器中打开的说明(如果我通过上面的存储库检测到该网站位于应用程序内)。