target=“_blank” link opening in PWA and not in browser in Android

穿精又带淫゛_ 提交于 2019-12-23 12:13:25

问题


I have a website which is also a PWA.

If I add the PWA to my device (Android) and then go back into the browser (Chrome, latest available version for Android), the links with target="_blank" will open in the PWA, no matter what.

I know this could be a corner case, but what if I want to be sure that browsers links will be open in browser and not in the PWA?

iOS behaves correctly...


回答1:


In manifest.json you set a scope, which determines which links will open in the PWA and which will open in the browser:

scope parameter in PWA Manifest



来源:https://stackoverflow.com/questions/53173797/target-blank-link-opening-in-pwa-and-not-in-browser-in-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!