keeplive icon indicating copy to clipboard operation
keeplive copied to clipboard

RemoteService Context.startForegroundService() did not then call Service.startForeground()

Open vniu opened this issue 4 years ago • 3 comments

这个问题依然存在

vniu avatar Jul 01 '20 02:07 vniu

依然存在

trycat110 avatar Jun 16 '21 06:06 trycat110

没人解决吗 // 启动服务的地方 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) { context.startForegroundService(new Intent(context, MyService.class)); } else { context.startService(new Intent(context, MyService.class)); } 麻烦作者改一下吧

q197585312 avatar Feb 09 '22 08:02 q197585312

如果设备 root 过,可以使用这个脚本文件app_watchdogd.sh来双进程自动重启 APP

flyskywhy avatar Jun 07 '22 06:06 flyskywhy