if (plus.os.name == "Android") {
const hgService = uni.requireNativePlugin("uniapp_kill_service_plugin");
console.log("+++++++++++++++++++++++++++++++++++++++++", hgService);
hgService.config({
title: "1111",
content: "进程守护中",
taskTime: 3000, //任务执行频率,
autoStartService: true, //是否根据监听到的广播自启动服务
autoWakeUp: true, //是否自动定时点亮屏 30s
});
hgService.startService();
}
p***@gmail.com
- 发布:2020-12-04 20:45
- 更新:2020-12-14 14:42
- 阅读:851
2 个回复
p***@gmail.com (作者)
昨日测试,在2.8.13正常,在2.9.3失效
p***@gmail.com (作者)
换了一个进程守护,解决了