VPN only for some applications on the iPad
We are creating an application for the iPad. Because of sensitivity of the data in the application, the dat开发者_如何学JAVAa transfer should be over VPN. Before launching the application the user has to establish a VPN connection.
How do we make sure at the same time that other applications like YouTube don't use the VPN and only the application which we created for the iPad uses VPN?
Thanks, Praveen
When you create a VPN you do not have to "tunnel the whole network" (in fact it´s not nice to do so as local servers will become unreachable), you can decide on which ports, services, IPs to tunnel; so if you try to reach secretserver.example.com you do use the secure connection and if you try to reach google.com you don´t use it.
You could even think of using VPN on Demand (for more info I´d suggest having a closer look at Apple´s iOS Enterprise Deployment Guide)
VPN On Demand: For certificate-based IPSec configurations, you can turn on VPN On Demand so that a VPN connection is automatically established when accessing certain domains.
You can't. As a rule of thumb, no 3rd party app (like yours would be) can prevent, alter, influence or (in many cases) tell what the iOS apps (such as mail or youtube) or iOS itself are doing.
The only way for an app to interact with it's environment are things like local notifications, adding calendar entries and the like.
In your case, you'd propably need to establish some sort of secure connection within the system provided communication channels to make sure no other app will be able to talk on the same layer as your app does.
精彩评论