return url 科尔多瓦应用程序

return url cordova app

我想转到外部页面执行一些操作,它必须重定向到我在 returnUrl 中指定的页面。它在浏览器中运行良好,但当我在设备中尝试时它崩溃了。

window.location.href = "http://" + publicKey + ".externalURL/" + publicKey + "?token=" + data[0].token + "&returnUrl=http://localhost/htmlfileinapp.html/" + publicKey

回答:您无法在设备浏览器中打开 inside 应用 page.html 外部。这简直是​​不可能的。 您只能在浏览器中打开它在应用程序中

或者将您的页面放到网上...这是应用程序概念的问题,而不是代码。