uni.makePhoneCall({
phoneNumber: ‘18888889999’,
complete:(e)=>{
console.log(e)
}
})

- 发布:2024-03-27 17:04
- 更新:2024-09-25 09:38
- 阅读:1103
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: window 11
HBuilderX类型: 正式
HBuilderX版本号: 4.06
手机系统: iOS
手机系统版本号: iOS 17
手机厂商: 苹果
手机机型: iphone13pro
页面类型: nvue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
上述代码直接 使用hbuilderx4.06自定义基座中
上述代码直接 使用hbuilderx4.06自定义基座中
预期结果:
跳转到拨号页面
跳转到拨号页面
实际结果:
无任何反应
无任何反应
bug描述:
调用uni.makePhoneCall方法不跳转到拨号页面
complete回调中显示 "errMsg": "makePhoneCall:ok"
5 个回复
1***@qq.com
先把电话号码正则跑一下,const phone = val.replace(/[^0-9]+/g, ''); val就是你要拨打的电话号码,之后在调用uni.makePhoneCall这个方法,就可以拨打成功了
HRK_01
感谢反馈,已复现该问题。
EsRell_
ios17 都有这个问题。何时修复啊?
2024-05-31 15:02
8***@qq.com
ios iPhone iOS 17.2模拟器 跑项目,点击打电话,直接跑了成功回调,显示 {
"errMsg": "makePhoneCall:ok"
},
预期结果:
跳转到拨号页面
实际结果:
无任何反应
bug描述:
调用uni.makePhoneCall方法不跳转到拨号页面
complete回调中显示 "errMsg": "makePhoneCall:ok"
——————————————————
按这个方法操作了,还是无效:const phone = val.replace(/[^0-9]+/g, ''); val就是你要拨打的电话号码,之后在调用uni.makePhoneCall
请问有朋友成功解决了吗?
h***@163.com - 小白一枚
iOS18
拨打电话:uni.makePhoneCall({phoneNumber: pPN}); 没反应
升级跳转商店:plus.runtime.openURL(encodeURI(this.newVerInfo.uploadAddress)); 没反应
报错内容是:BUG IN CLIENT OF UIKIT: The caller of UIApplication.openURL(:) needs to migrate to the non-deprecated UIApplication.open(:options:completionHandler:). Force returning false (NO).
6***@qq.com
麻烦尽快解决吧