document.location=在Android上的Cordova 3.6中损坏

document.location = broken in Cordova 3.6 on Android?

本文关键字:损坏 Cordova 上的 location Android document      更新时间:2023-09-26

我的JQueryMobile应用程序一直在通过编写短信URL发送文本,即

var url = sendMessageUrl(message, navigator.userAgent);
document.location.href = url

这很好cordova@3.5.0-0.2.7但在cordova@3.6.3-0.2.13

我现在应该做一些不同的事情吗?

看起来特殊的URI方案现在没有列入白名单。你可以通过打开InAppBrowser 来解决这个问题

https://stackoverflow.com/a/19642942/97777