gyf-dev / Cactus

Android Keep Alive(安卓保活),Cactus 集成双进程前台服务,JobScheduler,onePix(一像素),WorkManager,无声音乐

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android O的应用crash和anr问题。

lzy19920619 opened this issue · comments

Samsung Galaxy A51 (a51) Android 10手机开启保活后偶尔会报startForegroundService() did not then call Service.startForeground(),从而引出ANR的问题,可能随着大量手机系统升级到O,后续可能出现的频类会增多。

只能调用hideNotificationAfterO改为false

hideNotificationAfterO已经修改为false了,还是收到这个crash .
AndroidRuntime: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground()

只能调用hideNotificationAfterO改为false

方法调用了,但是还是会出现问题