Just had my wifi not connect again due to it being told that no internet access so this is annoying. Internet search says “To create an Android app that alerts a user when they are not connected to a saved Wi-Fi network, you can use the BroadcastReceiver class to monitor Wi-Fi state changes. Register a receiver for the WifiManager.NETWORK_STATE_CHANGED_ACTION intent, which is triggered when the Wi-Fi connection state changes, including when a device disconnects from a saved network. Inside the onReceive method, you can check the current network state using ConnectivityManager or WifiManager to determine if the device is connected to the desired saved network.
For a more robust solution, consider using automation apps like Tasker or MacroDroid, which allow you to set up profiles that trigger actions based on network state changes. For example, you can configure a profile in MacroDroid to trigger when Wi-Fi disconnects from a specific network, and then perform actions such as playing a sound, displaying a popup message, or vibrating the device. Tasker offers similar functionality and can be used to create a loop that checks the connection status periodically, using a counter to confirm prolonged disconnection before triggering an alert.
Additionally, there are existing apps on the Google Play Store, such as "Network Voice Alert!", that provide voice alerts for Wi-Fi disconnections and other network changes, offering a ready-to-use solution without requiring development. These apps can be configured to notify users when they leave a Wi-Fi zone or when connectivity is lost, helping users take timely action.”
I looked at the Network Voice Alert and it seems to just tell you every time there is a change which is not what is needed. I only need to know when I have a saved connection available but my phone will not stay connected to any saved connection because they all have denied internet access or similar.
Does that give any experts out there an idea of how to keep on top of failed network connectivity?
Thanks,