In my case, I am working with a long-running service that programmatically registers a broadcast receiver when it starts up but it doesn't seem that it receives any of the tasker intents.
This flow would be ideal for me
I would need to see the complaint to comment on that.
I would need to see the complaint to comment on that.The toast error message that flashes when I try to choose my action plugin is "Error: plugin error: missing, disabled, not exported or no permission, or too many receivers". This is when I exclude the broadcast receiver from my manifest.xml altogether and attempt to only use the dynamic receiver.
This leads me to believe that tasker is using the "queryBroadcastReceivers"
thing I can think of on the top of my head is that my receiver is in a different package from the tasker plugin but to me this shouldn't matter because it is still registering with the same intent-filter that tasker is broadcasting on.
If your plugin cannot complete it's processing within
the onReceive()
function, put this code at the
end of onReceive()
instead:
if ( isOrderedBroadcast() )
setResultCode( TaskerPlugin.Setting.RESULT_CODE_PENDING );
I was under the impression that this is for action plugins (settings). Does this logic work for state plugins as well?