在app中添加uni-pusher,并打包在安卓12或harmony 12以上,进入uni-pusher页面几秒后便会闪退,根据uni统计日志发现具体闪退的设备如下:["HONOR ALA-AN70","HONOR TFY-AN00","HONOR RNA-AN00","HONOR ANN-AN00","HONOR FNE-AN00","HONOR HPB-AN00","HONOR LGE-AN00","HONOR DIO-AN00","HONOR NTH-AN00","HONOR JLH-AN00","HONOR GIA-AN00","HONOR SDY-AN00","HUAWEI RTE-AL00","HUAWEI JAD-AL80","HUAWEI GLA-AL00","HUAWEI BRQ-AN00","HUAWEI TAS-AN00","HUAWEI BAL-AL00","HUAWEI JEF-AN00","HUAWEI ABR-AL60","HUAWEI OCE-AN50","HUAWEI WLZ-AN00","HUAWEI JAD-AL00","HUAWEI NOH-AN01","HUAWEI OCE-AN10","HUAWEI DBY-W09","HUAWEI ANG-AN00","HUAWEI ABR-AL80","HUAWEI ELS-AN10","HUAWEI OXF-AN10","HUAWEI NCO-AL00","HUAWEI ELS-AN00","HUAWEI MRX-W09","HUAWEI NOH-AN00","HUAWEI CET-AL00","HUAWEI NAM-AL00","HUAWEI ABR-AL00","HUAWEI BMH-AN10","HUAWEI ANA-AN00","HUAWEI LIO-AL00","OPPO PGAM10","OPPO PEPM00","OPPO PFTM20","OPPO PDPM00","OPPO PEYM00","OPPO PGBM10","OPPO PFZM10","OPPO PEAT00","OPPO PENM00","OPPO PFFM20","OPPO PERM10","OPPO PFJM10","OPPO PFGM00","OPPO PEHM00","OPPO PEQM00","OPPO PEGM00","OPPO PFEM10","OPPO PDST00","OPPO PEMM00","OPPO PGX110","OPPO PFUM10","OnePlus PHK110","OnePlus PGP110","OnePlus PGKM10","Xiaomi 22041216C","asus ASUS_AI2201_A","realme RMX3350","realme RMX3092","realme RMX2173","realme RMX3551","realme RMX3366","samsung SM-S9080","samsung SM-S9010","samsung SM-N9810","samsung SM-G986N"]
- 发布:2023-05-09 23:12
- 更新:2023-05-12 20:23
- 阅读:752
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: windows 10
HBuilderX类型: 正式
HBuilderX版本号: 3.7.9
手机系统: Android
手机系统版本号: Android 12
手机厂商: 华为
手机机型: HONOR DIO-AN00
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
App下载地址或H5⽹址: https://a.app.qq.com/o/simple.jsp?pkgname=cn.edu.bit.ztb.fitapp
操作步骤:
预期结果:
uni-pusher正常打开摄像头
uni-pusher正常打开摄像头
实际结果:
几秒后APP便闪退
几秒后APP便闪退
bug描述:
android 12 操作系统以上的手机使用uni-pusher组件会闪退,根据uni统计的APP崩溃日志发现跟蓝牙权限有关,可是在权限列表中添加蓝牙相关权限【BLUETOOTH,BLUETOOTH_ADMIN】,及targetSdkVersion设置为30后依然闪退,把蓝牙关闭后,uni-pusher即可恢复正常。uni统计记录的错误日志如下
···
java.lang.SecurityException: Need android.permission.BLUETOOTH_CONNECT permission for android.content.AttributionSource@3b185d4d: Bth-hfp-HeadsetService
at android.os.Parcel.createExceptionOrNull(Parcel.java:2443)
at android.os.Parcel.createException(Parcel.java:2427)
at android.os.Parcel.readException(Parcel.java:2410)
at android.os.Parcel.readException(Parcel.java:2352)
at android.bluetooth.IBluetoothHeadset$Stub$Proxy.getConnectedDevicesWithAttribution(IBluetoothHeadset.java:1092)
at android.bluetooth.BluetoothHeadset.getConnectedDevices(BluetoothHeadset.java:577)
at com.tencent.rtmp.sharp.jni.TraeAudioManager$a.onServiceConnected(TraeAudioManager.java:4470)
at android.bluetooth.BluetoothHeadset$3.handleMessage(BluetoothHeadset.java:1461)
at android.os.Handler.dispatchMessage(Handler.java:117)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:293)
at android.app.ActivityThread.main(ActivityThread.java:9596)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:586)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1204)
···
1 个回复
ztb_qq (作者)
写错了,是live-pusher,不是uni-pusher