Bug 436904 - No "Add WiFi" button on trusted networks menu - KDE Connect
Summary: No "Add WiFi" button on trusted networks menu - KDE Connect
Status: ASSIGNED
Alias: None
Product: kdeconnect
Classification: Applications
Component: android-application (show other bugs)
Version: 1.7
Platform: Android Android 10.x
: NOR minor
Target Milestone: ---
Assignee: Albert Vaca Cintora
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-11 01:39 UTC by asalmaubijiayam
Modified: 2023-05-21 00:36 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kdeconnect add wifi button not showing up in trusted networks menu (113.49 KB, image/png)
2021-05-11 01:39 UTC, asalmaubijiayam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description asalmaubijiayam 2021-05-11 01:39:40 UTC
Created attachment 138311 [details]
kdeconnect add wifi button not showing up in trusted networks menu

SUMMARY
So i want to add my wifi to trusted network, but the "Add WiFi" button isn't showing up even though I'm connected to wifi, disabling allow all, and allowing location. It only happened on my sansung a6 phone, not my other phone.

STEPS TO REPRODUCE
1. Open KDE Connect (on android).
2. Goto settings > trusted networks.
3. Connect to wifi.
4. disable "allow all".
5. Make sure to grant location permission to kde connect.

OBSERVED RESULT
The "Add WiFiName" Button didn't show up.

EXPECTED RESULT
The "Add WiFiName" Button should show up on the bottom.

ADDITIONAL INFORMATION
im sorry if my explanation bad.
Comment 1 Krzysztof Dziembała 2023-03-22 14:23:49 UTC
I think that it isn't the same problem that asalmaubijiayam is facing, but in my case (Android 13) the button doesn't appear, because TrustedNetworkHelper.currentSSID() always gets "<unknown ssid>" as the Wi-Fi SSID.

The currently used API (https://developer.android.com/reference/android/net/wifi/WifiManager#getConnectionInfo%28%29) was deprecated in Android 12 (API level 31) and the SSID of current network on newer systems (Android 12+) can be obtained by registering a callback with FLAG_INCLUDE_LOCATION_INFO.
Comment 2 Bug Janitor Service 2023-05-21 00:36:26 UTC
A possibly relevant merge request was started @ https://invent.kde.org/network/kdeconnect-android/-/merge_requests/356