rokwire / safer-illinois-app

Source code repository of "Safer Illinois" App - the official COVID-19 app of the University of Illinois.
https://safer.illinois.edu/
Apache License 2.0
33 stars 23 forks source link

[BUG] Android: Fix crash - RemoteServiceException #690

Closed dobromirdobrev closed 3 years ago

dobromirdobrev commented 3 years ago

Describe the bug Fix crash in Android reported in firebase console. Stacktrace:

Fatal Exception: android.app.RemoteServiceException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{74b296 u0 edu.illinois.covid/.exposure.ble.ExposureClient}
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2190)
       at android.os.Handler.dispatchMessage(Handler.java:106)
       at android.os.Looper.loop(Looper.java:233)
       at android.app.ActivityThread.main(ActivityThread.java:8063)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:631)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:978)

To Reproduce There are no steps to reproduce.

Expected behavior No crash.

Smartphone (please complete the following information):

dobromirdobrev commented 3 years ago

Fixed in version 2.10.35.