IllegalStateException: Not allowed to start service Intent:
Handling a high-priority Firebase Cloud Messaging (FCM) message.
Receiving a broadcast, such as an SMS/MMS message.
Executing a PendingIntent from a notification.
Starting a VpnService before the VPN app promotes itself to the foreground.
-> Gelöst mit JobIntentService
Anschliessend:
java.lang.IllegalStateException: Cannot invoke observeForever on a background thread
-> Handler(Looper.getMainLooper()).post {
// observeForever here
}```
IllegalStateException: Not allowed to start service Intent:
-> Gelöst mit JobIntentService
Anschliessend: java.lang.IllegalStateException: Cannot invoke observeForever on a background thread