How to catch all push notifications from other app

2019-02-20 10:33发布

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条回答
贪生不怕死
2楼-- · 2019-02-20 11:12

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 :)

查看更多
登录 后发表回答