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

Dispatch network change onCapabilitiesChanged #441

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jdholdren
Copy link

I was looking to implement a 'wifi only upload' option for our app, and came across #330 . However, I noticed that going from a metered to unmetered did not cause dispatchNetworkChange to be called. So I've added onCapabilitiesChanged inside of the ConnectivityManager.NetworkCallback for network changes to be detected when going from cell to wifi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants