gyf-dev / Cactus

Android Keep Alive(安卓保活),Cactus 集成双进程前台服务,JobScheduler,onePix(一像素),WorkManager,无声音乐
Apache License 2.0
1.54k stars 229 forks source link

Android O的应用crash和anr问题。 #26

Open lzy19920619 opened 4 years ago

lzy19920619 commented 4 years ago

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

gyf-dev commented 4 years ago

只能调用hideNotificationAfterO改为false

alienzh commented 4 years ago

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

cjecky commented 2 years ago

只能调用hideNotificationAfterO改为false

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