问题
I'm looking for a method to detect incoming push notifications directed to other apps on iOS. I know there's probably no way this can be done with public frameworks, but since this is for a personal project, I can use private libraries.
I want to contact via bluetooth an external device every time I get a notification, but I can't program the device itself (so no ANCS). I've looked into the SpringBoardServices and the BulletinBoard private frameworks, but I'm not an expert programmer, so I couldn't figure out a way to use them for my needs... Any ideas? Thanks in advance!
回答1:
Very interesting question!
I have some ideas which may help you.
Private framework SpringboardServices:
- SBSPushStore class
- SBSPush*
Then, there is the BulletinBoardService. It's the codename for the Notification Center. And because it shows a list of notifications, it must contain notification data somewhere. I'd take a closer look into this framework.
Finally, my last guess, there is an ApplePushService private framework. I think it receives the remote notifications.
Good luck! Keep us updated :)
来源:https://stackoverflow.com/questions/32334153/how-to-catch-all-push-notifications-from-other-apps-on-ios-using-private-framewo