通过点击离子应用程序上的按钮启动呼叫 [英] initiate a call by clicking button on ionic app

查看:161
本文介绍了通过点击离子应用程序上的按钮启动呼叫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用href =tel:+ 1-1800-555-5555打电话给我,但它不是直接发起呼叫,而不是把数字放在框/请求确认..can我直接调用,好像我们点击Call Me和呼叫开始,我使用离子+角度我必须包括cordova,检查这个articale但没有太多的帮助:

i was using a href="tel:+1-1800-555-5555 " Call me" to call , but it is not initiating the call directly rather than putting the number in the box / asking for confirmation ..can i call directly , as if we click "Call Me" and the call gets started, i am using ionic + angular do i have to include cordova , have checked this articale but not much help:

http://rickluna.com/wp/2012/02/making-a-phone-call-from-within-phonegap-in-android-and-ios/

推荐答案

您需要将其放在config.xml中href tel:phonenumber工作
< access origin =tel: launch-external =yes/>

You need to put this in your config.xml for the href tel:phonenumber to work < access origin="tel:*" launch-external="yes"/ >

这篇关于通过点击离子应用程序上的按钮启动呼叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆