Skip to content

wifi only option, and missing typings. #497

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

Merged
merged 8 commits into from
Dec 19, 2019
Merged

wifi only option, and missing typings. #497

merged 8 commits into from
Dec 19, 2019

Conversation

cristianoccazinsp
Copy link

This PR adds a new option: wifiOnly to the request config. The goal of this flag is to force requests to only go through WiFi interfaces.

Rationale: Connect to IOT devices while also being connected to mobile/LTE data. Also useful when downloading large files and we don't want to download from mobile data.

Implemented for both Android and IOS, although the approach is slightly different on each one. For Android, SDK 21 or above is needed, and the setting will be ignored otherwise.

Should close #454

@cristianoccazinsp
Copy link
Author

Thoughts on this? Does anyone review PRs?

@cristianoccazinsp
Copy link
Author

Also added a fix for #494

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.

Feature Request - Network/Socket selection
3 participants