2***@qq.com
2***@qq.com
  • 发布:2024-01-19 14:40
  • 更新:2024-01-19 17:21
  • 阅读:179

小程序中webview页面里的拨打电话失效,请问这种情况可以拨打电话吗

分类:uni-app

使用uni.makePhoneCall,请教各位

小程序和h5使用uniapp写的。h5通过webview嵌入小程序中。现在h5页面里用uni.makePhoneCall拨打电话,没有反应也没有报错。

2024-01-19 14:40 负责人:无 分享
已邀请:
DCloud_UNI_HRK

DCloud_UNI_HRK

有没有分配权限
https://uniapp.dcloud.net.cn/api/system/phone.html#makephonecall
webview页面也是用uniapp写的吗?

  • 2***@qq.com (作者)

    是的uniapp写的

    2024-01-22 09:28

  • DCloud_UNI_HRK

    回复 2***@qq.com: 是微信小程序吧?基础库版本号符合微信小程序的要求吗?如果拨打不了,在webview传消息回给微信小程序,然后在微信小程序里面再调用该接口试试

    https://developers.weixin.qq.com/miniprogram/dev/api/device/phone/wx.makePhoneCall.html

    2024-01-22 11:18

  • 2***@qq.com (作者)

    回复 DCloud_UNI_HRK: 小程序和h5使用uniapp写的。h5通过webview嵌入小程序中。现在h5页面里用uni.makePhoneCall拨打电话,没有反应也没有报错。

    2024-01-23 11:38

  • DCloud_UNI_HRK

    回复 2***@qq.com: 在webview传消息回给外层,然后在外层再调用该接口

    2024-01-23 14:48

piaoyi_UI

piaoyi_UI - 【插件开发】【专治疑难杂症】【多款插件已上架:https://ext.dcloud.net.cn/publisher?id=193663(微信搜索飘逸科技UI小程序直接体验)】【骗子请绕道】问题咨询请加QQ群:120594820,代表作灵感实用工具小程序

https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html 看小程序官方文档,不支持打电话

要回复问题请先登录注册