我的JQueryMobile应用程序一直通过编写SMS 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

关于javascript - document.location =在Android的Cordova 3.6中损坏了吗?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/26194417/

10-11 22:51
查看更多