iOS: Use WiFi and Mobile Data simultaneously

折月煮酒 提交于 2019-12-06 02:49:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!