2
Solved

Android 11 - Cannot turn off wifi

Hello,

I have a task that always ran successfully until Android 11. I can no longer turn off wifi. I've tried Net-Wifi Off and Custom Settings methods and neither works.

Any other way to accomplish?

1 reply

Hi there.

Google has changed the way Android works for apps that target API 29, so Tasker can't toggle wifi anymore. Check here for more details: https://issuetracker.google.com/issues/128554616

If you want to better understand what "targeting" an API means, check here: https://tasker.joaoapps.com/userguide/en/target_api.html

.Can you please install this app on your phone and then try the "Wifi" action again from Tasker?

Make sure to exempt the "Tasker Settings" app (not only Tasker itself) from battery optimization (https://tasker.joaoapps.com/userguide/en/faqs/faq-problem.html#00) so that Tasker can call it in the background.

Even if you already have the "Tasker Settings" app installed, you need to install this new version for the Wifi toggle to work.

I can't upload this version to Google Play because it targets API 21 (which is why toggling Wifi still works with it) and Google only allows apps that target API 29 and over.

Thanks in advance.

Download here: https://drive.google.com/file/d/1B_cVPKDvIWQPmr3ZppymGvAKEinLsukc/view?usp=sharing

Topic is closed for comments