在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">
有人知道吗?
答案 0 :(得分:0)
更改<access origin="*"/>
至<access origin="tel:*" launch-external="true">
然后,以下两个都有效:
<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的最新版本)。