Skip to content
This repository has been archived by the owner on Jun 13, 2020. It is now read-only.

Android 8.0 : IllegalStateException: Not allowed to start service Intent com.google.android.gms.analytics.ANALYTICS_DISPATCH #9

Open
ankitguptag18 opened this issue Oct 23, 2018 · 0 comments

Comments

@ankitguptag18
Copy link

ankitguptag18 commented Oct 23, 2018

Hi !

There is new IllegalStateExceptions throwing on Android 8.0 :

java.lang.IllegalStateException: Not allowed to start service Intent { act=com.google.android.gms.analytics.ANALYTICS_DISPATCH cmp=com.mypackage/com.google.android.gms.analytics.AnalyticsService }: app is in background uid UidRecord{6e20b26 u0a298 CEM  idle procs:1 seq(0,0,0)}
        at android.app.ContextImpl.startServiceCommon(ContextImpl.java:1538)
        at android.app.ContextImpl.startService(ContextImpl.java:1484)
        at android.content.ContextWrapper.startService(ContextWrapper.java:663)
        at com.google.android.gms.internal.measurement.i.c(Unknown:36)
        at com.google.android.gms.analytics.c.f(Unknown:8)
        at com.segment.analytics.android.integrations.google.analytics.DefaultGoogleAnalytics.dispatchLocalHits(SourceFile:26)
        at com.segment.analytics.android.integrations.google.analytics.GoogleAnalyticsIntegration.flush(SourceFile:331)
        at com.segment.analytics.IntegrationOperation$13.run(SourceFile:275)
        at com.segment.analytics.Analytics.performRun(SourceFile:1464)
        at com.segment.analytics.Analytics$4$1.run(SourceFile:455)
        at android.os.Handler.handleCallback(Handler.java:789)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6938)
        at java.lang.reflect.Method.invoke(Method.java:-2)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

Any info would be appreciated.

  • Expected Timeline of the fix?
  • Priority of the bug?
  • Will the Bug be fixed?
  • Will the issue won't be fixed in favor of Firebase Analytics?
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant