How can I transfer data via bluetooth from an iOS device to a Mac? - objective-c

I want to be able to transfer basic information (strings and such) from an iOS device to a Mac, and vice versa, via apps installed on each device. I've been trying to get bluetooth on the iOS device, but it seems to only want to connect to other iOS devices.

Bluetooth access on the ios is very limited. As a matter of fact you can only access it through the GameKit.
http://developer.apple.com/library/ios/#DOCUMENTATION/NetworkingInternet/Conceptual/GameKit_Guide/Introduction/Introduction.html
So if you want to share information with a Mac you would have to make the mac appear as an iOS device. I however ignore how you could do this.

Related

Detect if device is connected to a specific network(office wifi)

I have an enterprise iOS app and I am trying to detect if the device running the app is connected to the office wifi.
I can't find relevant information and I am not sure if this is possible.

WiFi Direct on Windows Phone 8.1

Is it possible to use WiFi Direct to connect to another device (Raspberry Pi) without tapping (NFC)?
The app needs to be able to find all WiFi Direct devices (Raspberry Pi's) in its vicinity, and by tapping one a connection is made to send strings.
The app needs to be able to detect new devices, that have never been paired with the phone before.
Windows Phone doesn't support WiFi direct communication from the SDK. Although it is available in Windows 8, its not yet present in phones.
According to Channel 9, MSDN
Windows 8 natively supports Wi-Fi Direct and has integrated the technology into the Windows 8 Play To and proximity sharing experiences.
However this doesn't apply for windows phone.
There are apps on the store which supports it, but I have no idea how to implement that in programming. Take a look at the process of using those apps
http://www.lumiamine.com/2014/07/wifi-direct-on-windows-phone.html

need help for bluetooth framework on mac osx

i'm an iOs developer and I actually need to make a mac application that use bluetooth framework to connect to another device (not iOS device).
I'm actually showing a modal view showing the connected bluetooth device with IOBluetoothDeviceSelectorController and I get the user choice with [modal getResults] but I don't know how to initiate the connection with the selected device and I can't find a simple way to do it on the mac dev library.
is anyone know a tutorial or sample code that could help me advance in my project?
linkos
The Mac Developer Library has two sample Bluetooth projects; connecting to a health thermometer and connecting to a heart rate monitor. There is also video available of the Advanced Core Bluetooth WWDC 2012 session.

File transfer from iOS App to Mac App?

Is it possible to transfer files between a Mac app and a iOS app? I want to transfer files that are in the documents directory in my iOS App to my Mac App via Wifi, how could I do it?
Well, as of iOS 5 onwards, there's iCloud. Since that's still under NDA, I'll just have to point to the relevant documentation and let you read up on your own.
If not, I'd consider using the fabulous Dropbox APIs. This does require your users signing up for a Dropbox account, but then you get automatic two-way syncing between their Mac (or PC) and their iOS devices.
Failing that, there's always Bonjour. Properly configured - and it's not super easy, there is a bit of CFSocket or BSD socket work that you need to do - Bonjour will discover any services on the local network, Mac or iOS.

Objective c iPhone app and Mac app communication

Is this possible?
I want to be able to press a button on the iPhone app and something happens to the Mac app. Maybe via 3G and wifi.
Any ideas?
Yes, both Mac OS and iOS support numerous network APIs, including CFNetwork. You could use Bonjour to let the iPhone discover the Mac (or vice versa).