Is it possible to create an app that "picks up" a particular wifi signal as a cue to turn on the app or blue tooth? - ios

You know how when you go into your wifi signal page
you see a list of all the wifi your phone is currently picking up?
If a person were to download this special app where he or she consent to it
is it possible for this app to recognize one of the signals as a cue to turn on bluetooth or launch an app?

No this isn't possible without jailbreaking since it requires a private library (Apple80211). You can only get the SSID of the network your device is currently connected to.

Related

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.

How to make existing device IOT only?

For iOS application, IOT(Internet of thing) is a new things.and we can connect our device with other hardwares.
My question is , is there any way by which i can connect our existing devices like (Air Conditioner,Other ele. component) IOT only?
Here is one of the best example for connecting and controlling such devices like A.C., TV, etc with your iOS device.
It's Open Source so you can explore more.
IRKit:
http://getirkit.com/en/
(opensource infrared remote controller).
IRKit is a WiFi enabled Open Source Infrared Remote Controller device.
Home electronics with an infrared remote, like air conditioners, TVs, lights can be controlled using iPhone and iPad via IRKit.
IRKit works with IRKit's official app and you can easily create iOS apps to send IR signals to control home electronics using IRKit iOS-SDK .
You can create apps for example that does:
Use location, turns on air conditioner when you arrive near your home.
Press one button to turn off all your home electronics when you leave home.
Connect with Facebook, and automatically change your TV's channel to which your friend is watching.
Hope It will help.
If your component have any types of connectivity which is suitable for iOS devices the you can do this, like:
If your Air Conditioner has bluetooth connectivity and it can handle command like turn on/off or controlling temperature, then you can do it with any kind of device that can communicate with the electrical components.
I used to turn off my computer via internet. There was a process running in my computer that hits an URL, receive JSON data and if it gets shutdown flag yes, it turn itself off. I can set that flag from my mobile. The lacking was I could not turn on.
Edit:
Yes you can, but you have to do a lot of hardware related work. like: Bluetooth Relay Controller. Here is a video.

How does apple store app knows my in-store location?

I notice when I walk into local Apple Store (the real shop), the Apple Store app on my iPhone 5s will show a welcome from the exact store (e.g. Apple Store XX where XX is a store name). I assume this app recognizes my location somehow. This store (in China) is not equipped with iBeacon yet, and after turning off BlueTooth I can still see the greetings. I continued to shut down WiFi, and restarted this app, then location and greeting is gone. Note I didn't connect to the "Apple Store" WiFi hotspot for all tests, but it definitely indicates the WiFi is relevant with the location mechanism.
So my question is:
how can this app know I'm near to or within the physical store based on WiFi scanning?
Is it part of Core Location public API? (if yes, I should be able to do the same thing for any shop with a WiFi signal - please explain how to achieve this in details if you know).
Or instead, is Apple doing their own dirty job but rejecting others all over the world to do the same? By dirty job, I mean a mapping from SSID to the exact location while device is not connected to the WiFi.
Thanks, geeks.

Toggling bluetooth on/off

Can an app toggle bluetooth on/off without prompting the user? Can an app read the list of the ids of nearby discoverable devices? If so, which function returns such a list? This is in the context of blackberry devices.
Thanks!
No. It is not possable (through the API) for a third party application to turn on BlueTooth. The best that you can do is open a BlueTooth connection is a way that will prompt the user to turn it on if it isn't already.
In general, the BlackBerry OS won't let third party applications do things behind the user's back that could compromise data security.

Can an iPhone application running in the background transfer data via USB interface?

There are 2 iPhone applications. One application running in the foreground and the other running in the background. Is there any way to get the background application to send data over USB without coming into foreground? Ideally we want to keep the foreground app in the foreground, while the background app process some data. Once the data is processed it will inform the foreground app that the data has been processed.
No it cannot. It cannot even do this without the use of private frameworks, unless you're in the Made for iPhone program. If you are, then your organization will know, based on the documentation made available to you, what you can and cannot access, when and how.
Should you be in the Made for iPhone program, and are unclear as to what you have access to and when, contact the person in your organization who is the technical contact with Apple for this program, they will be able to give you the details.
If the task is started while the app is in the foreground and you call the appropriate beginBackgroundTask/endBackgroundTask methods, you should be able to have it continue running after the app is backgrounded.
Note that access to USB is restricted (see jer's answer) and that there's no officially sanctioned way to communicate between different apps on the same device. Also, you can only buy/download one app at a time in the App Store and I can't see Apple approving an app that required you to download a second app for it to work. So you may have bigger problems to solve first.
It would help significantly if you told us what you actually wanted to achieve. For example, "I want MyApp on the user's phone to communicate with MyApp on the user's computer".
The absolute easiest way is to send data between the phone and a computer is to require that they're both on the same Wi-Fi network. Several iPhone apps incorporate a web server (this was the easiest way of "file sharing" before OS 3.2), and many more iPhone apps connect to a computer running server software.
Your other options, more or less:
Reverse-engineer the Bluetooth side of GameKit and reimplement it on the computer-side. I'm not aware of anyone who's done this. Loosely, I think it's IP over Bluetooth PAN plus some sort of Bluetooth service discovery.
Audio input/output, e.g. the headphone jack or certain pins on the dock connector. I'm not entirely sure how the mic side works (the resistance was a bit high for a carbon mic when I checked), but you might get lucky and find a way to turn it into "line in" or find "line in" pins on the dock connector.
A webcam pointing at the iDevice screen (and the iDevice camera pointing at the computer screen). Ewwwww.
Join the MFi program.

Resources