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

Question about behavior on observeWifiAccessPointChanges(context) #34

Open
dokiKit opened this issue Jul 6, 2018 · 4 comments
Open
Labels

Comments

@dokiKit
Copy link

dokiKit commented Jul 6, 2018

What will be the expected behavior when the ap is disconnected? Will it fires emission with a null Wifi info object?

Much Thanks!

@dokiKit
Copy link
Author

dokiKit commented Jul 6, 2018

I have tested it, seems that it will not emit if the ap is disconnected

@pwittchen
Copy link
Owner

Hi,

I was AFK. I suppose you meant "phone is disconnected". I don't know what "app is disconnected" means in this context. You can clarify that. I think the library will not emit any "null" info when the phone is being disconnected. Moreover, it should scan networks even if the phone is not connected to any WiFi network.

Regards,
Piotr

@dokiKit
Copy link
Author

dokiKit commented Jul 10, 2018

Hi, I refer ap as access point. I think it maybe reasonable for the library to emit something when disconnecting from an access point, so one can be notified and take action base on that emission.

Thanks.

@pwittchen
Copy link
Owner

pwittchen commented Jul 10, 2018

I think it maybe reasonable for the library to emit something when disconnecting from an access point, so one can be notified and take action base on that emission.

@dokiKit I've made another library, which does that, because it's a separate responsibility. Some people want to monitor access points and others want to monitor connectivity only. Check it at: https://github.com/pwittchen/ReactiveNetwork. It's also based on RxJava, so you can make an interaction between different streams from various events coming from these two libraries (or any other RxJava stream).

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

No branches or pull requests

2 participants