How to get surrounding networks with strength in iOS? - iphone

Is there any frameworks for find out the surrounding networks and network strength. Please tell me if it is possible or not in ios 4/5/6. Either is there any sample code for this.
For example i am using in iPhone Airtel network. Based on Airtel network i need to find what are other networks in that particular area and what is the signal strength of that network.
Thanks in advance.

As far as i know this cant be done using public API's. You need to use private API's check thi s out MobileApple80211 framework.
Yes it is possible. In fact there is an awesome 3rd Party library for this called iPhone-Wireless
This provides you -
view the wireless networks in your area.
signal strength of each network.
For iOS 5 you'll need a jailbroken iPhone. Guvener Gokce has a very educational blog post on this: iPhone Wireless Scanner iOS5
Hope this helps but keep in mind that this library uses private API's and your app might get rejected from app store.
UPDATE: Check this out too - Accessing iPhone WiFi Information via SDK

Related

iPhone : how to auto connect to a known wifi SSID?

I know it is possible to list the available Wifi networks on iPhone using the CaptiveNetwork API from official Apple SDK.
I was wondering if there is a way to auto connect to a specific SSID programmatically as long as I can find it in the list returned by CaptiveNetwork ?
Apple would not like you to do such things. Connecting to Wifi Stations is the responsibility of the user, so don't expect a public API. See e.g. here. Probably the makers of this app also would like to do it automatically.
Peter
First of all, I don't think you will be able to get the list of available WiFi networks on iPhone using Captive network API. It will just give you the details of your connected wifi. And though there is private APIs to do this, Apple doesn't approve the apps that use them.
As I know, you only could get the current-connected wifi without using private api, but what confusing me is Nest iOS App do could get a list of available wifi, and Apple didn't reject it!!!

Communication between two iOS devices

I am looking for a way to have one iPhone app send a message to another app on a different phone (sort of like a Sender-Receiver set up). I am looking for the best possible way to do this. Does anyone have any ideas and/or tutorials?
Thanks for the help.
You should use GameKit. It is super easy to send messages between two iOS devices using it. Here's a great tutorial: Game Kit. You can also get more information about it here from the docs: About Game Kit.
You communicate by creating an ad-hoc bluetooth or local wireless network.
lmirak provided insightful info about device communication(especially about GameKit). I would like to add one more solution. You can use WiFi network to do your device communication.
See the link or download the sample application from developer.apple
The sample application named as WiTap. It demonstrates how to achieve network communication between applications. Using Bonjour, the application both advertises itself on the local network and displays a list of other instances of this application on the network.
If your app is only going to run on iOS, then you should use the fantastic MultipeerConnectivity library. https://developer.apple.com/documentation/multipeerconnectivity
If you need a solution that will work cross-platform, then one way to accomplish this is using sockets and connecting over a local network. On iOS you can use CocoaAsyncPods for sockets and NetService for discovery.
Here is a basic example app that does this: https://github.com/brendaninnis/LocalNetworkingApp
, which I explain in great detail here: http://brendaninnis.ca/connect-nearby-devices-part-1.html

Example of Bluetooth/Bonjour communication on iOS5

Up until iOS5 CFNetwork was all you had to use to be able to find and connect to devices using both WiFi and Bluetooth, but as of iOS5 Apple decided to restrict CFNetowrk to only find and comunicate with services over WiFi (Technical Q&A QA1753) So I was left with a huge amount of code that I cant use no more and must now focus on C based implementation using C based API to rewrite bluetooth communication over bonjour.
Since this is the low level type of code, and I am not a deep C diver, I would like to know if there are examples or even better sample code of such communication, where you have a Server class and Browser class. It will take me ages to write it my self, so if you know any of those samples I would greatly appreciate it.
You should check out to see if Apple GameKit would fit your needs.
GameKit handles pairing Bluetooth devices. You implement you own pairing of WiFi connected devices. GameKit handles the rest of the communication.
I was facing similar problems wanting to use both WiFi and Bluetooth. GameKit worked very well for me. Reduced my networking code by more than half.
Apple has good sample code on their developer site.

Scanning wifi getting the power

I know this is an asked question, but I coudn't get an answer...
I want to scan the wifi stations around me, getting the power of them. It is not for upload it to the appstore, so I don't care about private things.
Apple iOS SDK does not contain interface to get the signal strength information of Wi-Fi OFFICIALLY.
Here is a related SO question: Accessing iPhone WiFi Information via SDK

iPhone to iPhone networking

I am interested in developing an iPhone application that creates ad-hoc networks between iPhones.
Is such an application feasible?
I am a novice with iPhone development, so I apologise in advance for my naiivety.
Thanks
In iPhone OS 3.0, Bluetooth is used to create an ad-hoc network and has been developed for this purpose.
Here is some documentation.
http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/GameKit_Guide/GameKitConcepts/GameKitConcepts.html
On a side note, there are some games that use the current access point and scan the subnet that they are on and find other listening clients. Then they create a game that way.
I know this is an old question, but since I just researched a similar topic, I wanted to share the results in case it's helpful to someone who searches for this in the future.
Newer iOS versions include Game Kit, a set of APIs allowing developers to create peer-to-peer networking systems over WiFi or Bluetooth. This appears to be exactly what the poster is requesting.