吉安感知网项目-前端
罗广辉
2026-02-26 81b8c688c80520b2beb38088dcee8fa5f2754e80
uniapps/work-app/src/uni_modules/keep-app/utssdk/app-android/index.uts
@@ -118,8 +118,6 @@
    const packageName = context.getPackageName()
    if (!powerManager.isIgnoringBatteryOptimizations(packageName)) {
      // 给个提示
      uni.showToast({  title: '请将应用添加到电池优化白名单'})
      try {
        const intent = new Intent()
        intent.setAction('android.settings.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS')