ionic调用手机系统的拨打电话

android调用如下:

在config.xml中添加

<access origin="tel:*" launch-external="yes" />

在页面上

<button (click)="call()">拨打电话</button> 
//href中需要填写tel:手机号码

在ts

call(){
      document.location.href="tel:17724278927"
  }
posted @ 2019-01-03 14:21  vegetbaleBrid  阅读(538)  评论(0)    收藏  举报