FORUMS
Remove All Ads from XDA

Wifi Scanning Blocked / Limited by Android Pie?

2 posts
Thanks Meter: 0
 
By androidpiedev, Junior Member on 16th May 2019, 07:49 AM
Post Reply Email Thread
Hi, I am working on an Ionic app where I am using a hotspot plugin to scan available WiFi WAPs around me. My app runs the scan every second. After scanning for first few seconds, the app doesn't seem to detect any WAPs. Leaving the app for a few seconds makes it detect WAPs again but this time also for a few seconds before it dies again until next time. This has been tested on different devices with Android Pie and the behaviour is same. However, when I test it on any Android version other than Android Pie, it works fine; i.e. it keeps updating the scan every second. My question is: Is there anything in Android Pie that is stopping my app to scan available WAPs every second?
 
 
21st May 2019, 11:49 PM |#2  
OP Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by androidpiedev

Hi, I am working on an Ionic app where I am using a hotspot plugin to scan available WiFi WAPs around me. My app runs the scan every second. After scanning for first few seconds, the app doesn't seem to detect any WAPs. Leaving the app for a few seconds makes it detect WAPs again but this time also for a few seconds before it dies again until next time. This has been tested on different devices with Android Pie and the behaviour is same. However, when I test it on any Android version other than Android Pie, it works fine; i.e. it keeps updating the scan every second. My question is: Is there anything in Android Pie that is stopping my app to scan available WAPs every second?

Throttling
The following limitations apply to the frequency of scans using WifiManager.startScan().

Android 8.0 and Android 8.1:

Each background app can scan one time in a 30-minute period.

Android 9 and later:

Each foreground app can scan four times in a 2-minute period. This allows for a burst of scans in a short time.

All background apps combined can scan one time in a 30-minute period.
Source: Android Developer Guide > Topic: Wifi Scan throttling
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes