setEnableBackground(false) 在uni-app中无效
setEnableBackground(false) 在uni-app中无效
信息类别 | 详细信息 |
---|---|
产品分类 | uni小程序SDK |
手机系统 | Android |
手机系统版本号 | Android 12 |
手机厂商 | 华为 |
手机机型 | HBN-AL00 |
页面类型 | vue |
SDK版本号 | 4.65 |
操作步骤:
- 使用SDK中的demo 也是如此
预期结果:
- 不后台运行
实际结果:
- 还是后台运行
bug描述:
DCSDKInitConfig config = new DCSDKInitConfig.Builder()
.setCapsule(false)
.setMenuDefFontSize("16px")
.setMenuDefFontColor("#ff00ff")
.setMenuDefFontWeight("normal")
.setMenuActionSheetItems(sheetItems)
.setEnableBackground(false)//开启后台运行
.setUniMPFromRecents(false)
.build();
设置不允许后台运行无效,还是会后台运行
更多关于setEnableBackground(false) 在uni-app中无效的实战教程也可以访问 https://www.itying.com/category-93-b0.html