liuuuuu
liuuuuu
  • 发布:2025-11-08 16:32
  • 更新:2025-11-08 16:32
  • 阅读:18

【报Bug】关于app运行时出现插件调用不到的情况

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: Window11

HBuilderX类型: 正式

HBuilderX版本号: 4.84

手机系统: Android

手机系统版本号: Android 11

手机厂商: 小米

手机机型: REDMI 10X

页面类型: nvue

vue版本: vue3

打包方式: 云端

项目创建方式: HBuilderX

App下载地址或H5⽹址: 应用市场:i盾

示例代码:

const linphone = uni.requireNativePlugin("sn-linphone-sip");
在pinia 中的方法调用
init(){
linphone.start();
}

操作步骤:

小几率

预期结果:

期望结果应该是有注册回调,如下:
16:30:42.794 linphone globalCallback event: , [Object] {"data":{"state":1},"event":"registerChange"} at store/modules/sip/sipback.js:131
16:30:42.795 Call state changed:, registerChange at store/modules/sip/sipback.js:296
16:30:42.795 register state:, [Number] 1 at store/modules/sip/sipback.js:298
16:30:43.743 linphone globalCallback event: , [Object] {"data":{"state":2},"event":"registerChange"} at store/modules/sip/sipback.js:131
16:30:43.945 Call state changed:, registerChange at store/modules/sip/sipback.js:296
16:30:43.945 register state:, [Number] 2 at store/modules/sip/sipback.js:298

实际结果:

TypeError: linphone.start is not a function

bug描述:

项目中包含Linphone网络电话,小几率会出现:TypeError: linphone.start is not a function的情况,出现后须刷掉后台重新打开才会有。

2025-11-08 16:32 负责人:无 分享
已邀请:

要回复问题请先登录注册