Created attachment 122777 [details] Screenshot from Android and Plasma upon connecting to wifi networks with/without internet SUMMARY On other platforms such as Android, the wifi indicator shows a small ‘x’ near the wifi strength if there is no internet connectivity on the current wifi network. This is very useful and should be included in the wifi indicator KDE Plasma system tray, the list of networks that pops up on clicking said indicator, and any other relevant places. STEPS TO REPRODUCE 1. Connect to a wifi network without internet connectivity. 2. Observe the wifi icon in the tray. 3. Connect to a wifi network with internet connectivity. 4. Observe the wifi icon in the tray. OBSERVED RESULT There is no significant difference in the appearance except for the signal strength. EXPECTED RESULT When connected to a wifi network without internet connectivity, there should be a small ‘x’ near the strength indicator.
You cannot easily determine whether you are connected to the internet or not. For example, by default Android reads the responds code from > connectivitycheck.gstatic.com If it's != 204 it will show an "x". That means if the connection to this URL is blocked, Android will tell you have a restricted internet access, even though you can access all other addresses. In short: It's not reliable! So what you are probably asking for is to detect captive portals. That should already work in the network manager and some enhancements have been implemented recently: > https://phabricator.kde.org/D22079
Created attachment 122797 [details] Icon and tooltop indicate limited network connectivity If I see it correctly, this function already exists :) * https://github.com/KDE/plasma-nm/blob/87fa14955632baeb040c8c067e00683ae4251774/kded/portalmonitor.cpp#L60 and * https://bugs.kde.org/show_bug.cgi?id=411788
This was already implemented in a later Plasma version. :)