Mac to iPhone App Communication over WiFi - objective-c

I am new to developing for the iPhone and would love some advice on an app i'm trying to develop.
Is it possible to send commands to an app on iOS 3.2 from OS X using AppleScript. The iOS app will display an image and run a small script when it recieves the appropriate command from the client software running on a Mac Mini. The devices would communicate over an a closed WiFi network.
Before I continue down this path does anyone have any advice on how to setup the communication (i.e. get the app to run in the background and listen on a designated port).

I don't know the full process but I know that various apps do this one way or another, such as 1password and desktop remote mouse apps. I think that CocoaAsyncSocket will help. An alternative to having the iOS app listening on a socket is to open a connection from iOS to OS X and then persist it. You can then send data either way through the connection.

Related

USB device listening OSX objective c using peertalk

I developed a OSX application that listening the USB devices that connected from OSX and application runs fine before submit to app store. At the time of submission to app store I enabled the "App Sandbox" and enabled USB in App Sandbox. But after enable this application is not able to get the list of USB connected devices. I am using peertalk library from github. Link is below:
PeerTalk
So now please can anyone suggest the solution for this. or suggest any option to get the devices list which is connected from osx using USB.
Thanks
Mit

Talk to MacOSX app from Chrome Extension

I have a chrome extension running in my browser. I also have a Mac OSX app I wrote in Swift/Objective-c in Xcode. I am wondering how this chrome extension can talk to the Mac OSX app on the same computer.
I am aware of the Chrome Extension API, but do not know how I can capture the information from that is sent by Chrome in Swift. Does anyone know how to do this?
Thanks
There are two broad approaches you can take.
Native Messaging API. This does have the limitation that Chrome must launch the process (and communicate to it via STDIO) - you cannot attach to an existing process. The upside - the communication channel is pretty secure.
Your native app can expose a web server (or better yet, a WebSockets server) on a local port. The extension can then try to connect to this port and talk to your app. The downside is that anything (at least on the machine) can connect to your native app.
This is a frequently used approach; for example, 1Password or various IDE integrations work this way.
You could combine the two approaches to launch the app with a "launcher" Native Host if it's not running.

How to automatically launch iOS application when a bluetooth connection is established?

So basically what I want to do as the title says is when I have a bluetooth connection established to my iOS device, an application should automatically start. How can I do that?
Observation: GameKit is used for the connection.
Without jailbreaking the device and writing/installing a Springboard plugin, this isn't possible in iOS.
There are no Apple-provided APIs for launching apps and developers are only able to write code that runs when their app is launched by a user.

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.

ios upload/download file from desktop

I need my ios device to act like a server i.e. once I connect my iphone with computer I'll be able to upload documents to iphone and as well as download documents from iphone. I know this is possible but I forgot library that allow us to do that. Does anybody knows such library? Also any sample code will be really helpful
Thanks
Refer http://www.cocoadev.com/index.pl?AsyncSocket.
Using socket connection you can make your iphone as a server by running your app which makes a socket connection.