I am developing on iPhone app, Where i want to capture the other applications event which is done for MAC. I found this through following link How to Listen For an Application Launch Event in Mac OS X?. I need similar kind in iOS.
I tried implementing the code in iOS, but later i found that we don’t have NSWatcher in iOS. So i tried with NSDistributionNotification class, but it is giving a compilation error. I checked the framework files, i found only NSNotification.h but No NSDistributionNotification.h file. Where can I find NSDistributionNotification.h file? How to address this problem?
That is not possible. Each and every App runs in its own sandbox and will not broadcast any events across the system to other Apps.
You may however invoke other Apps by using a URL scheme. Still, those will not be able to communicate back to your app unless it has also setup a URL scheme that those other Apps try to invoke. In other words, an App may be started by another App and it may also get parameters on that startup-process but that is it – no way to communicate behind the scenes other than URL scheme/s.