打开studio在左侧列表中找到config.xml文件,双击打开,选择插件选项勾选cordova-plugin-phonecaller文件,并在权限选项中选择相关权限。最后保存文件。

电话

summer框架中的联系可以使用cordova插件(cordova-plugin-phonecaller),功能包含:

1、拨打电话

  1. window.PhoneCaller.call("1381051373", //参数类型为string
  2. function (arg){
  3. alert(arg+'success');//成功回调 返回ok
  4. },
  5. function (arg){
  6. alert(arg+'error'); //失败回调
  7. })

用例github下载地

更多参见

文档更新时间: 2018-01-15 13:52