外部ページに移動していくつかのアクションを実行したいのですが、returnUrl で指定したページにリダイレクトする必要があります。ブラウザでは正常に動作しますが、デバイスで試してみるとクラッシュします。
window.location.href = "http://" + publicKey + ".externalURL/" + publicKey + "?token=" + data[0].token + "&returnUrl=http://localhost/htmlfileinapp.html/" + publicKey