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

[Enhancement] Switch Upload from Cellular to WiFi when a WiFi network is joined during an upload #127

Open
pedrosimao opened this issue Jan 24, 2019 · 2 comments

Comments

@pedrosimao
Copy link

I have noticed that if an upload starts via 4G or 3G connection and the user connects to a WiFi during the upload, the upload won't switch to Wifi (which would be normally faster and cheaper). But it stays on cell network till the end.
It would be great to create a listener for cell network to wifi network changes, so upload could switch network or even restart.

@TSMMark TSMMark changed the title Upload won't switch from 4G to WiFi [Enhancement] Switch Upload from Cellular to WiFi when a WiFi network is joined during an upload Jan 24, 2019
@pedrosimao
Copy link
Author

@TSMMark thanks for your support.
If you have any idea on how it can be done I can try to code it myself.

@TSMMark
Copy link
Contributor

TSMMark commented Jan 29, 2019

I imagine it would have to be implemented for iOS and Android both separately because of the nature of background processes. Looking into it more I'm not sure it would even be possible without canceling and retry an upload once the device has switched networks, and it sounds like it would require foregrounding the app. https://forums.developer.apple.com/thread/25758

Sorry I can't be of more help. Your best bet might be allowing the user to cancel and retry within your application

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