问题描述
我正在寻找一种方法来检测定向到 iOS 上其他应用程序的传入推送通知.我知道使用公共框架可能无法做到这一点,但由于这是用于个人项目,我可以使用私有库.
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.
每次收到通知时,我都想通过蓝牙联系外部设备,但我无法对设备本身进行编程(因此没有 ANCS).我已经研究了 SpringBoardServices 和 BulletinBoard 私有框架,但我不是专家程序员,所以我无法想出一种方法来使用它们来满足我的需要......有什么想法吗?提前致谢!
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!
推荐答案
很有趣的问题!
我有一些想法可能对您有所帮助.
I have some ideas which may help you.
私有框架 SpringboardServices:
Private framework SpringboardServices:
- SBSPushStore 类
- SBSPush*
然后是 BulletinBoardService.这是通知中心的代号.因为它显示了一个通知列表,所以它必须在某处包含通知数据.我会仔细研究这个框架.
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.
最后,我最后的猜测,有一个 ApplePushService 私有框架.我认为它会收到远程通知.
Finally, my last guess, there is an ApplePushService private framework. I think it receives the remote notifications.
祝你好运!让我们保持更新:)
Good luck! Keep us updated :)
这篇关于如何使用私有框架捕获来自 iOS 上其他应用程序的所有推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!