Is it possible to restrict an iPhone app to only work if there’s a Wifi connection (not 3G)?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes. There are two steps:
First, you need to add the UIRequiresPersistentWiFi key to your applications
Info.plist. This ensures that the WiFi connection does not go to sleep while your application is open.Secondly, you need to query the system (using the
SCNetworkReachabilityAPI) to see which radio is currently enabled. See this question in the iPhone documentation.