WiFi Scan result avaible - issue

Post your questions and help other users.

Moderator: Martin

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

WiFi Scan result avaible - issue

Post by xpdev » 23 Jun 2019 17:11

Hello

Has anyone noticed if the "wifi scan result avaible" trigger works properly on Android 9?

in the previous android 8 the trigger was activated every time the phone provided the results to Automagic with android 9 hours can pass and it is never activated.


thank you
Xiaomi MI 6

Rom Miui 10 EU STABLE

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: WiFi Scan result avaible - issue

Post by Desmanto » 23 Jun 2019 17:40

Location feature must be enabled in order for the wifi to works properly. The same too, that wifi scanning must be enabled in order for location based trigger to work properly. If you are in airplane mode, sometimes it also won't work properly.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: WiFi Scan result avaible - issue

Post by xpdev » 23 Jun 2019 17:51

WiFi scan and location are both enabled.

Everything else works fine.

Weather finds my city and WiFi connect normally when at home
Xiaomi MI 6

Rom Miui 10 EU STABLE

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: WiFi Scan result avaible - issue

Post by xpdev » 23 Jun 2019 19:22

Seems works sometimes when i unlock the phone
Xiaomi MI 6

Rom Miui 10 EU STABLE

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: WiFi Scan result avaible - issue

Post by xpdev » 24 Jun 2019 08:44

The strange thing is that everything is like on Android 8 where flow works fine.
So the only thing i can think is that something works wrong on Pie.
Seems like Automagic doesn't receive the "trigger" (i don't know how explain in a better way) from Android
Xiaomi MI 6

Rom Miui 10 EU STABLE

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: WiFi Scan result avaible - issue

Post by Desmanto » 24 Jun 2019 18:07

If sometimes it works, then Automagic should have receive the event. There must some limitation that prevent the phone from scanning for location. Do you activate battery saver or any perfomance limiter? Try to turn it off and see if it works properly now.

Try another method too, use Trigger period timer 5 minutes and action wifi scan in another flow. See if this trigger the flow.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: WiFi Scan result avaible - issue

Post by xpdev » 24 Jun 2019 22:09

"Try another method too, use Trigger period timer 5 "
Yes this work.

I have made a test all day long, Automagic never received the event from Android.

So i can say that "WiFi Scan result avaible" doesn't work in Automagic if it's not fired from a "Wifi Scan" action in Automagic.

There Is no battery limitation active or any perfomance limiter for Automagic or every where else on Android.

Thank you for tour help.

Another things to check ?
Xiaomi MI 6

Rom Miui 10 EU STABLE

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: WiFi Scan result avaible - issue

Post by Desmanto » 25 Jun 2019 11:02

If only period timer work, then better use condition Wifi Available. This condition should be able to work without action wifi scan or trigger wifi scan result available. So your flow can use Trigger period timer + condition wifi available instead.

Trigger wifi scan result available run just like period timer too, but with unexact timer. So sometimes it triggers 3 minutes once, sometimes 1,5 minutes, sometimes more than 5 minutes.

Other thing that you can check is to enable wifi location scanning, usually located at the setting location or advanced wifi option.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
xpdev
Posts: 59
Joined: 16 Sep 2014 06:20
Location: Italy

Re: WiFi Scan result avaible - issue

Post by xpdev » 25 Jun 2019 14:22

Thank you for your help

"wifi location scanning" Is ON
Xiaomi MI 6

Rom Miui 10 EU STABLE

Marfo
Posts: 7
Joined: 04 Jan 2017 11:29

Re: WiFi Scan result avaible - issue

Post by Marfo » 01 Jul 2019 18:22

Hi, I have the same problem on Pie. After I update my galaxy s8 to pie, I have problems with WiFi scan results available and with condition WiFi available. My phone during night don't receive results from WiFi scanning. If phone is not active it don't get scanning results, it's just empty.

Post Reply