With GSCopyPurpleNamedPort(appId) in GraphicsServices deprecated in IOS7, what is the alternative approach? [closed]
Asked Answered
O

1

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?

Overhasty answered 10/7, 2013 at 14:38 Comment(4)
This question brushed into NDA based SDKs. The OP is not allowed to discuss iOS 7.Gist
@NilsMunch It's up to the OP and any answerers to honour the NDA, it isn't for SO to enforce.Barleycorn
@Barleycorn Fair enough :)Gist
@NilsMunch Not that it isn't a question for closure, but not for reasons of NDA alone. :)Barleycorn
G
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.

Gratt answered 10/7, 2013 at 15:4 Comment(4)
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.Overhasty
i m getting the console logs, as victor said, it says that it has been protectedFerrochromium
@ Victor Ronin did you get a solution PLZ ?Dzoba
@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.Gratt

© 2022 - 2024 — McMap. All rights reserved.