How to catch all push notifications from other apps on iOS using private frameworks?

情到浓时终转凉″ 提交于 2019-12-18 18:30:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!