Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

activeNetworkInfo is Deprecated #2967

Closed
Tracked by #2338
anandwana001 opened this issue Jan 2, 2025 · 0 comments · Fixed by #2968
Closed
Tracked by #2338

activeNetworkInfo is Deprecated #2967

anandwana001 opened this issue Jan 2, 2025 · 0 comments · Fixed by #2968
Assignees

Comments

@anandwana001
Copy link
Collaborator

anandwana001 commented Jan 2, 2025

   val networkInfo = cm.activeNetworkInfo
    return networkInfo?.isConnected ?: false

The activeNetworkInfo method in ConnectivityManager has been deprecated since API level 29 (Android 10).

@anandwana001 anandwana001 changed the title NetworkManager activeNetworkInfo is Deprecated Jan 2, 2025
@anandwana001 anandwana001 self-assigned this Jan 2, 2025
@anandwana001 anandwana001 moved this to In Progress in Ground Jan 2, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Ground Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant