1

I try to use notifications, but I got into trouble on Android 8. Everything works fine when the software is in run mode.But when I close it, it crashes after a while:

java.lang.IllegalStateException: Not allowed to start service Intent { act=ACTION_START cmp=com.neuron.food/neurons.com.food.food.Notification.NotificationIntentService_Message (has extras) }: app is in background uid UidRecord{3aaf797 u0a132 RCVR idle procs:1 seq(0,0,0)}

How can I fix this problem?

  • 6
    Possible duplicate of [Android 8.0: java.lang.IllegalStateException: Not allowed to start service Intent](https://stackoverflow.com/questions/46445265/android-8-0-java-lang-illegalstateexception-not-allowed-to-start-service-inten) – Amine Apr 22 '19 at 16:32
  • It seems you are trying to start a service from notification action. Please attach the code of notification and service. – Keivan Esbati Apr 23 '19 at 06:05

0 Answers0