peacemaker Expert Licensed User Longtime User Oct 9, 2019 #1 HI, All For Android 7+ we cannot use broadcast receivers for network change state. But some kind of apps (networking) must need it. Latest recommendation is to schedule network operations. Interesting article is https://medium.com/ki-labs-engineering/monitoring-wifi-connectivity-status-part-1-c5f4287dd57 But how to use it in B4A ?
HI, All For Android 7+ we cannot use broadcast receivers for network change state. But some kind of apps (networking) must need it. Latest recommendation is to schedule network operations. Interesting article is https://medium.com/ki-labs-engineering/monitoring-wifi-connectivity-status-part-1-c5f4287dd57 But how to use it in B4A ?
Erel B4X founder Staff member Licensed User Longtime User Oct 10, 2019 #2 peacemaker said: For Android 7+ we cannot use broadcast receivers for network change state. Click to expand... You can use dynamic receivers while the app is running. The other possible solution is to schedule your app to start from time to time with StartServiceAt and check the network state. If your app must act immediately when the network state changes then you must use a foreground service. Other solutions will not work. Upvote 0
peacemaker said: For Android 7+ we cannot use broadcast receivers for network change state. Click to expand... You can use dynamic receivers while the app is running. The other possible solution is to schedule your app to start from time to time with StartServiceAt and check the network state. If your app must act immediately when the network state changes then you must use a foreground service. Other solutions will not work.