views:

157

answers:

3

Hi all,

Is it possible for two iPhone apps to communicate with each other by any means like sending messages etc?

EDIT: Also is there any way a system app can communicate with our app? For example: If I want to play a sound when I receive a phone call, then is it feasible?

Thanx in advance.

+1  A: 

I think that not directly, they're only allowed to access it's own sandbox. You could approach that using Push on both Applications, using an intermediate server to transfer the data between the two apps.

Adirael
A: 

Direcctly it is not possible at all

With intermediate Server they can.. i.e.

One application sends message to server That server sends same message to Second Application via Push Notification

mihirpmehta
+3  A: 

Do you mean in realtime? On the same device?

Of course there are uncountable ways to do IPC (pasteboard, -[UIApplication openURL:], via a web-service). The best way to send data depends on the actual use case.

For now two apps cannot run at the same time, so realtime communication would not be possible on one device.

Nikolai Ruhe
Also is there any way a system app can communicate with our app? For example: If I want to play a sound when I receive a phone call, then is it feasible?
neha
As far as I know, the system emits no notification to (non-apple) apps when the phone rings.
Nikolai Ruhe