Skip to content

IllegalStateException: not allowed to start service intent ... app is in background #18

@VaibhavAWD

Description

@VaibhavAWD
  • Min SDK = 16
  • Target SDK = 28

Whenever the methods of PlantWateringService class i.e startActionWaterPlant() and startActionUpdatePlantWidgets() gets triggered, the app crashes and the log points to the line context.startService(intent)

How to resolve this issue?

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