I created a Tasker plug-in action in Automate to sync the media library from kodi at regular intervals. This works fine, but only if yatse is, or was until recently, in the foreground. If yatse hasn’t been used in a while and this action triggers, I get the following log message:
02-03 12:09:53.403 F [email protected]: java.lang.IllegalStateException: Not allowed to start service Intent { act=com.twofortyfouram.locale.intent.action.FIRE_SETTING pkg=org.leetzone.android.yatsewidgetfree cmp=org.leetzone.android.yatsewidgetfree/com.joaomgcd.taskerpluginlibrary.action.IntentServiceAction (has extras) }: app is in background uid UidRecord{8f76d11 u0a351 CAC bg:+2d2h54m43s855ms idle change:cached procs:1 seq(49,49,49)}
Is it expected that the tasker plug-in only works when the app is in foreground? Could you otherwise verify that it works in Tasker (maybe Automate does something iffy)? Any other Idea?
I’m running Android version 11 on a Samsung S21, any other information that may be useful?
For now I’ve made a workaround so that automate only triggers media sync if the app is in the foreground, but it would be nice if that wasn’t needed…