问题
Setup:
My project involves a WiFi Camera which creates a WiFi hotspot. In order to stream video preview/browse media on the Camera, the user needs to connect to Camera's hotspot.
Problem:
The user cannot use the cellular data over 3G/4G simultaneously, as the iOS device is already connected to the camera via WiFi.
What I have tried? / Investigations
- Customizing WiFi hotspot by setting Static IP, Subnet Mask and leaving all other fields empty. This works as expected, iOS connects to the internet via Mobile Data showing the 3G connection, also connects to WiFi silently.
This solution needs to show details to the user how he needs to configure WiFi network connection, which is not user-friendly.
- MultiPeer Connectivity
Possible only with Apple devices
What do I want?
- Is there any way to do this programmatically?
(I want to submit to App Store - No private API)
- Is there any alternative to this?
- Any other direction to solve this problem?
来源:https://stackoverflow.com/questions/37138871/ios-use-wifi-and-mobile-data-simultaneously