This app was mentioned in 17 comments, with an average of 1.88 upvotes
That was me (my wife). The app is "WiFi Automatic" and it forces WiFi to turn on at a particular time or even every time the phone is unlocked, thereby ensuring WiFi is actually used when it's available and connected, just in case you've turned it off. It does not require root or a Tasker recipe (though Tasker is great and way more versatile).
https://play.google.com/store/apps/details?id=de.j4velin.wifiAutoOff&hl=en
Some fixes I've applied:
I actually shifted the wifi scan throttling to off, because of what the description looked like (throttle=bad?). I've been using this excellent app to toggle on/off wifi automatically, and stopped some torrents in the house, and did a manual software update by hitting the (...) in software updates (which didn't change the version, but did go through the whole Update/Restart process. https://play.google.com/store/apps/details?id=de.j4velin.wifiAutoOff&hl=en_US
I also found a setting under dev options called Mobile Data always active, to switch to mobile data when wireless is low/unusable, which may help me when I go into the yard and am having goofy wifi due to wifi frequency shenanigans. I applied multiple fixes so I have no idea what's making it work right now, just trying to avoid the issue. I sync media using Drive Autosync and use a 512GB just so I don't have to deal with streaming and bad 4G signal and wifi issues.
The app primarily solves the issue because it'll just change from wifi to 4G after an hour, which means my apps won't stay broken due to the potential bug, and the phone will get the wifi reset back on once I turn the screen on. If I'm syncing new media I probably don't need my phone to sync over wifi for longer than an hour anyway. I just need it to not annoy have to be toggled when I'm playing music over wifi and it breaks. I wonder if the dev setting Mobile data always activeautomatically switching from wifi to 4g during the edge case where the wifi breaks during sleep mode and it's been less than 60 minutes of sleep.
Sorry for the long post, but maybe people will appreciate the fixes here.
I found the answer/solution.
I found an app called -
WiFi Automatic, which turns on/off wifi based on various conditions like turning on the wifi when the specific location is reached or turning off if there is no connection.
For Wifi I used Wifi Automatic on the WF Swift 2+ and also now on my Nokia 6.1. Works fine and it's free. Give it a try ... https://play.google.com/store/apps/details?id=de.j4velin.wifiAutoOff
(But had not tested deep sleep with this app)
Everything mentioned so far definitely works, but if location-based WiFi toggling is all you need I've been using WiFi Automatic for the past week. It has worked without any hiccups so far.
Well, I had a problem with WiFi on even though I told it to Keep WiFi on during Sleep - never.
I started using this app https://play.google.com/store/apps/details?id=de.j4velin.wifiAutoOff
and just left WiFi on all the time even during sleep. This app will turn off WiFi under rules that you set.
No more problem of WiFi on during sleep for my usage.
I have the same problem where WiFi ignores the advanced setting to shut off with the screen and stays on all the time. I installed WiFi Automatic which shuts Wifi off definitively when the screen is off and/or at a specific time. It also has an option to turn WiFi on for a couple minutes every two hours if you want it to stay reasonably up to date in notifications. It's free and from a well known and respected developer. The in-app purchase note in the Play Store is for a donation option in the app, not for purchasing added features or anything.
OP seems like he might be having the WiFi scanning always available battery drain.
Facebook in particular is a bit problematic as it tends to run in the background regardless. I guess what you could do is either turn off the WiFi automatically and/or use Greenify to hibernate the apps when your screen is off.
https://ifttt.com/applets/uKez8Yxd-if-you-leave-home-turn-off-wifi
https://ifttt.com/applets/aABP7rmN-turn-wifi-on-when-enter-home
those should work. There are numerous automations to auto/toggle wifi at home if you use the phone's location.
Even simpler is an app like https://play.google.com/store/apps/details?id=de.j4velin.wifiAutoOff "Turn wifi off when not connected to a wifi network at least 1 minute" should also work fine for that effect.
Simple app to turn on wifi only while charging(for updates). I hate random public wifi's and my 4G is beast. https://play.google.com/store/apps/details?id=de.j4velin.wifiAutoOff&hl=lt
I developed WiFi Automatic for that purpose. You can set it to turn of WiFi when out of range from your networks
It was one of my fav macros before it was broken. This app works. Don't know how though.
Try WiFi Automatic which can automatically turn on WiFi when the phone is at home location, when the phone is unlocked, etc.
Try BetterBatteryStats and Wifi Automatic.
Yeah, that's bullshit. One of my app is 57k: https://play.google.com/store/apps/details?id=de.j4velin.wifiAutoOff