我是新来的!
我希望将我的网站作为我的Cordova-App的一部分。
页面应该在应用程序中打开,而不是在内部/外部浏览器中打开,所以看起来它们实际上是一部分该应用程序。
我已尝试过window.open(...)
和window.location="..."
,但它始终会打开Chrome。
答案 0 :(得分:1)
将此标记更改为<allow-intent href="://example.com/" />
中的config.xml
至<allow-navigation href="://example.com/" />
<allow-intent>
允许在浏览器中打开网址
<allow-navigation>
允许在应用内打开网址