Skip to content

getActiveNetworkInfo() and NetworkInfo were deprecated in API level 29 #8580

@edurenye

Description

@edurenye

Describe the bug
connectivityManager.getActiveNetworkInfo() (https://developer.android.com/reference/android/net/ConnectivityManager#getActiveNetworkInfo()) and NetworkInfo (https://developer.android.com/reference/android/net/NetworkInfo) were deprecated in API level 29, and we use it in: https://github.com/NativeScript/NativeScript/blob/master/nativescript-core/connectivity/connectivity.android.ts

Expected behavior
I'm not sure how to get the network type but to get the SSID we should use https://developer.android.com/reference/android/net/wifi/WifiManager wifiManager.getConnectionInfo().getSSID()

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions