keeplive
keeplive copied to clipboard
RemoteService Context.startForegroundService() did not then call Service.startForeground()
这个问题依然存在
依然存在
没人解决吗 // 启动服务的地方 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { context.startForegroundService(new Intent(context, MyService.class)); } else { context.startService(new Intent(context, MyService.class)); } 麻烦作者改一下吧
如果设备 root 过,可以使用这个脚本文件app_watchdogd.sh来双进程自动重启 APP