googlearchive / firebase-jobdispatcher-android

DEPRECATED please see the README.md below for details.
Apache License 2.0
1.79k stars 208 forks source link

java.lang.IllegalStateException in android.app.Activity.performResume #228

Closed hamzaydia closed 4 years ago

hamzaydia commented 6 years ago

My app is crashing in Android 7.0+, I use The Firebase JobDispatcher v0.8.5 And this is the report:

java.lang.RuntimeException:

  1. at android.app.ActivityThread.performResumeActivity (ActivityThread.java:3873)
  2. at android.app.ActivityThread.handleResumeActivity (ActivityThread.java:3914)
  3. at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3070)
  4. at android.app.ActivityThread.-wrap14 (ActivityThread.java)
  5. at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1659)
  6. at android.os.Handler.dispatchMessage (Handler.java:102)
  7. at android.os.Looper.loop (Looper.java:154)
  8. at android.app.ActivityThread.main (ActivityThread.java:6816)
  9. at java.lang.reflect.Method.invoke (Native Method)
  10. at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1563)
  11. at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1451)

Caused by: java.lang.IllegalStateException:

  1. at android.app.Activity.performResume (Activity.java:7154)
  2. at android.app.ActivityThread.performResumeActivity (ActivityThread.java:3850)
tasneembohra commented 6 years ago

I am also facing this issue, but I am still not sure it's because of dispatcher.

hamzaydia commented 6 years ago

@tasneembohra I think it's related to the battery saving in some devices like Huawei, Xiaomi..., They force stop the app after some time.

samtstern commented 4 years ago

In April 2019 we announced that Firebase Job Dispatcher would be deprecated today, April 7th 2020. For this reason we are going to close all open issues and archive the repository. We will also stop supporting FJD for new app installations (such as those targeting sdk versions greater than Android Q). Existing apps that rely on FJD should continue to function as usual.

While we will no longer work on FJD, we encourage you to migrate to Work Manager which is a superior tool and fully supported by the Android team.

Thank you for taking the time to try the library and provide this feedback. We sincerely appreciate your effort and we apologize for not addressing it in time.