Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does Not Seem To Be Working on Android 9 #2

Open
whitedavidp opened this issue Jul 20, 2020 · 1 comment
Open

Does Not Seem To Be Working on Android 9 #2

whitedavidp opened this issue Jul 20, 2020 · 1 comment

Comments

@whitedavidp
Copy link

I am sure that the issue is Android's new restrictions on implicit intents. With very few exceptions, later Android versions require that the target package be specified when sending broadcast events. I have confirmed this using Tasker's send intent to try and trigger a response. If I fail to include your app's package (outlined in red in the attached screenshot) within the send intent specification, nothing happens. When I do, I see the server showing my message in a toast.

So for this to work on later android, you need to include the tasker package in your broadcast event's parameters. I think you want to use the Intent's setPackage() method and pass in the package name for Tasker (net.dinglisch.android.taskerm).

This is what I had to do with my app SystemSettingsForTasker - which also communicates events to Tasker via intents.

Clipboard01

@whitedavidp
Copy link
Author

Also, I confirm this by installing your Pre-Oreo version on an Android 5 device and all works as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant