I want to go to a external page to do some actions and the it has to redirect to the page I indicate in the returnUrl. It works fine in the browser, but when I try it in the device it crashes.
window.location.href = "http://" + publicKey + ".externalURL/" + publicKey + "?token=" + data[0].token + "&returnUrl=http://localhost/htmlfileinapp.html/" + publicKey
Answer : you cannot open an inside app page.html externally in the device browser. It is simply IMPOSSIBLE. You only can open it in the browser inside the app.
Or put your page online... It s a matter of app conception, not code.