3

I want to send gsevent in IOS7. Which I follow from here:How to find the purple port for the front most application in IOS 5 and above?

I got it working for IOS 4,5,6, now I am working on IOS7 beta. I found out that the private API has been changed. The result of GSCopyPurpleNamedPort(appId) is always 0.

So how do I get the purple port of the current running application for IOS7, anyone has any ideas?

Community
  • 1
  • 1
user2485972
  • 147
  • 1
  • 8

1 Answers1

0

Take a look in the console logs, whether it says anything.

Most likely (it's a guess), they protected it with some entitlement and since your application doesn't have it, you will get 0 as result.

Victor Ronin
  • 22,758
  • 18
  • 92
  • 184
  • Sadly the console didn't say anything. Although GSGetPurpleSystemEventPort() this is still working. And if I try to send gsevent to system purple port, the console will give some errors. I will post the error msg next time when I tried it. – user2485972 Jul 11 '13 at 08:55
  • i m getting the console logs, as victor said, it says that it has been protected – Mehul Thakkar Feb 13 '14 at 11:47
  • @ Victor Ronin did you get a solution PLZ ? – Dhekra Zaied Nov 11 '14 at 14:46
  • 1
    @HDNZ: I didn't touch private API's already for about 8-9 month. It looks like iOS 8 became even more string with private API's and protected a lot of them with entitlements, so this area is become almost dead. – Victor Ronin Nov 12 '14 at 04:41