Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Upgrade to API level 29 or higher #6

Open
jornane opened this issue Mar 12, 2020 · 3 comments
Open

Upgrade to API level 29 or higher #6

jornane opened this issue Mar 12, 2020 · 3 comments
Assignees
Labels
android Android related
Milestone

Comments

@jornane
Copy link
Member

jornane commented Mar 12, 2020

According to the Android documentation, android.net.wifi.WifiConfiguration is about to be deprecated.

This class was deprecated in API level 29.
Use WifiNetworkSpecifier.Builder to create NetworkSpecifier and WifiNetworkSuggestion.Builder to create WifiNetworkSuggestion. This will become a system use only object in the future.

The app must support support the newest method to set up eduroam in Android, but I'm unsure what the timeline is on this.

@jornane jornane added the android Android related label Mar 12, 2020
@agomezmoron
Copy link

Hi @jornane ,

The team is pushed to the develop branch the changes. If you run the app in an Android API Level 28 or lower, the app will work as before. With API 29 and next, the app will never found any associated network, because Android returns the available confnigured networks empty (https://developer.android.com/reference/android/net/wifi/WifiManager#getConfiguredNetworks()).

This update also has a change related about how Android removes the WifiProfile: if the Android device is running an Android wit API >=29, it will only remove the WifiProfile if was configured from the geteduroam app. If the Android device uses the API < 29, the old behaviour will be done.

For ous side, after testing it from your side, we can close this.

Thanks

@agomezmoron
Copy link

I close the issue since it was merged into the develop branch

@jornane
Copy link
Member Author

jornane commented Jun 10, 2020

Reopening; builds with this fix will not work on Android Q (device reports eduroam already configured even if it's not) so more work is needed.

@jornane jornane reopened this Jun 10, 2020
@jornane jornane added this to the Phase II milestone Sep 15, 2020
@jornane jornane changed the title WifiConfiguration is about to be deprecated Upgrade to API level 29 Oct 2, 2020
@jornane jornane modified the milestones: Hotspot 2.0, Compliance Oct 9, 2020
@jornane jornane changed the title Upgrade to API level 29 Upgrade to API level 29 or higher Oct 14, 2020
dima-ko pushed a commit to dima-ko/ionic-app that referenced this issue Mar 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
android Android related
Projects
None yet
Development

No branches or pull requests

2 participants