i am facing this issue in service running on background. It will automatic crash in background. Where is the issue i couldn't find out.
Fatal Exception: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground():
ServiceRecord{e4c7ef5 u0 com.clap.find.my.mobile.alarm.sound/.service.BatteryAlertService}
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2137)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:237)
at android.app.ActivityThread.main(ActivityThread.java:7948)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1075)