How to find the purple port for the front most application in IOS 5 and above?
I am trying to write an app that runs in the background and injects touches to the springboard or other apps. I understand that I will be using private APIs and structures. The app is an enterprise app and does not need to be approved for the AppStore. I am using the GSEvent structure as suggested by KennyTM with some minor modifications for IOS 5/6. I am able to send touch events and other events to the Springboard by sending GSSystemEvents. I need to be able to send similar events to other applications as well, but I am not able to find the port for the front most application. Is there a way