How to let user open Wi-Fi when the Wi-Fi is not enable - ios

When user open my app, I want the Wi-Fi is enabled, it can have no connection ,but the Wi-Fi must be enabled. The query should return true when WiFi is enabled and device is not connected to any network.

Well there is no official support by Apple for this. There however is some trick to get the required result but there are changes of your app being rejected.
Have a look at this unofficial trick:
http://www.enigmaticape.com/blog/determine-wifi-enabled-ios-one-weird-trick
To answer your second question i.e. If wifi is enabled, you can find out if internet is accessible of not using this: iOS Detect 3G or WiFi

Related

How to use cellular data when connected Wi-Fi network?

I'm looking forward to use cellular data when connected Wi-Fi.
Yi dash camera works like this.
Yi camera make Soft AP.
iOS or Android phone connect the Wi-Fi.
Between YI and Phone, internal network is made,
generally, phone cannot use the internet.
but, in Yi network, phone can use internet, sns, streaming, and etc.
How can i do it?
Thanks in advance.
One solution (not practical from an app user perspective) is to manually go to the iPhone Settings, Wi-Fisection and select the desired Wi-Fi hotspot i(info).
From there you can change Configure IP to be Manual instead of Automatic and set the IP Address to be the same one as in Automatic (same for Subnet Mask) and make sure that Router is left empty.
That way, iOS won't try to use the Wi-Fi to connect to internet but use cellular if available.

Is there a way to Connect with a Wi-Fi Modem via my iOS app without using Settings Page?

I want to connect with a Wi-Fi Modem via my iOS app. I don't want the user to go to Settings page and Activate Wi-Fi. Is it possible to achieve a Single Button - Pressed & Wi-Fi Connection Activated?
Thanks for your reply!!!
This is not possible unless you use Apple80211 private API, which will be rejected from the App Store.
Here's more information on how it's not possible, and here's a framework for jailbroken phones to use private API and seek/connect to a network.

Are Wi-Fi Direct and Wi-Fi P2P the same?

Maybe this is a stupid question but..
Are Wi-Fi Direct and Wi-Fi P2P the same thing?
And I mean, the EXACTLY same thing?
I'm getting really confused with this two.
Wifi Direct is a technology for peer to peer connections and is very different from wifi. Wi-Fi Direct, initially called Wi-Fi P2P, is a Wi-Fi standard enabling devices to easily connect with each other without requiring a wireless access point.It is usable for everything from internet browsing to file transfer
Wifi Direct is not same as wifi . On Jelly Bean and above, when you try to use the WifiP2pManager API, WiFi-Direct is automatically enabled (as long as WiFi is on). Wifi can be switched on by calling:
WifiManager wifiManager = (WifiManager) context.getSystemService(Context.WIFI_SERVICE); wifiManager.setWifiEnabled(true);
For ICS refer to this Can I turn on WiFi-Direct from code? on Android API-14 (ICS)
This is the main reason to get confused between the two.

About wifi scanning in iOS

I'm wondering if it's possible to scan wifi networking nearby like what WiFi Map did?
And in this application, it can even provide password of the wifi hotspot. Is it legal and what kind of technology is used?
I do not think this App use IOS technology to scan wifi and offer dynamic password.
In IOS,with public API,you even cannot scan available wifi nearby.
So,I think the Technology of this app is:
At first, they offer some public wifi and passowrd.
Then user use this app,and they choose to share about connected wifi.So,that the database of this app became bigger and bigger.

iOS Reachability check for WiFi fails with personal hotspot

In my app I am using Apple's Reachability sample to check for a WiFi connection (reachabilityForLocalWiFi). If there is no connection a view is shown pretty much like in the App Store app when you have no connection.
This works quite well, but one user now reported problems when using the personal hotspot feature of iOS:
When I use WiFi Personal Hotspot I get the No WiFi message, even though my PC is connected to it.
Does anyone know why this is and how I can fix it? My main problem is that my provider doesn't allow the hotspot feature, so I am not able to test things...

Resources