Skip to content
This repository was 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

@ankitguptag18

Description

@ankitguptag18

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions