在工作灯6.2打电话

时间:2014-10-24 08:29:11

标签: android ibm-mobilefirst

在Worklight 6.0中,我可以使用以下方式轻松拨打电话:window.location="tel:12345679";
但在Worklight 6.2中,这并不起作用。在Android中它会抛出一个错误:

Error: The protocal isn't supported.

我尝试添加CALL_PHONE权限并将以下行添加到config.xml,但没有运气:
<access origin="tel:*" launch-external="yes">

有人知道吗?

1 个答案:

答案 0 :(得分:0)

更改<access origin="*"/>
<access origin="tel:*" launch-external="true">

然后,以下两个都有效:

  • 在HTML中:<a href="tel:+1-800-555-1234">call this number</a>
  • 在函数中(例如,wlCommonInit()):document.location.href = "tel:+375292771265";

我正在使用IBM Worklight Studio 6.2.0.01-20141015-1508(Eclipse Marketplace的最新版本)。

相关问题:How to open the phone dialer?