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

Real time updates for connection #154

Open
sudansh opened this issue Aug 12, 2021 · 1 comment
Open

Real time updates for connection #154

sudansh opened this issue Aug 12, 2021 · 1 comment
Assignees
Labels
From User Reported by a user and non-library contributor
Milestone

Comments

@sudansh
Copy link

sudansh commented Aug 12, 2021

Thank you for creating an issue to improve this library! Please check Please check the current issues to make sure that the improvement isn't already being worked on.

Description
Currently all the wifi operations provide one time results. I would suggest providing real time updates of the result.
For example getCurrentNetwork() : CurrentNetworkData? could be made getCurrentNetwork() : Flow<CurrentNetworkData?> so that user can get real time updates if the current network is changed

Reason
I have a wifi screen same as Android default wifi screen and I would like to get a list of wifi networks. I could get them one time with the call getNearbyAccessPoints but if there is a new wifi network after some time I would have to call the method again.

Acceptance Criteria
a method can be added as below
getCurrentNetwork() : Flow<CurrentNetworkData?>
getNearbyAccessPoints(filterDuplicates: Boolean): Flow<List<AccessPointData>>

@isuPatches
Copy link
Owner

Just wanted to acknowledge this ticket since it's been a while since I've been able to respond and work on WiseFy...I will look into live updates, but my concern is that Android throttles most applications that request network information too frequently. I will need to do some more research and see what is safely possible and come up with a plan. Thanks!

@isuPatches isuPatches added the From User Reported by a user and non-library contributor label Aug 21, 2022
@isuPatches isuPatches self-assigned this Aug 21, 2022
@isuPatches isuPatches added this to the 5.0.0 milestone Dec 24, 2022
@isuPatches isuPatches modified the milestones: 5.0.0, 5.1.0 Sep 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
From User Reported by a user and non-library contributor
Projects
None yet
Development

No branches or pull requests

2 participants