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

Network Changed Events #642

Closed
deisi opened this issue Dec 22, 2018 · 2 comments
Closed

Network Changed Events #642

deisi opened this issue Dec 22, 2018 · 2 comments
Assignees
Milestone

Comments

@deisi
Copy link

deisi commented Dec 22, 2018

The android docs say:

The app cannot attempt to connect if the network connection changes because it is not possible to receive the network change event.

And so has it been posted a couple of times in this bugtacker.
Now I'm not an android dev, so I might just be wrong, but from browsing the android developer reference, I don't think this is true. I looked at:

NETWORK_STATE_CHANGED_ACTION

This brought me to:
NetworkInfo
where they indeed talk about some deprecation in API level 28 and I assume this is what was meant by not being able to detect the netowrk state event, however there is also an alternative given:

NetworkCallback

And if I understand this correctly, you can register you own callback functions, that get called on network events.

@growse
Copy link
Collaborator

growse commented Aug 31, 2021

This also ties in with resetting the sendmessage queue wait timeout on config change as well as network change.

@growse
Copy link
Collaborator

growse commented Jul 26, 2023

This actually got fixed in 1daf531

@growse growse closed this as completed Jul 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants