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 to get the port for the application that is upfront and running so that I can send my GSEvents to the app?
It would be nice if someone can point me to examples or show me how I can get the purple port of the front most app.
Thanks!