Check if app has a notfication using private frameworks?

后端 未结 2 1285
眼角桃花
眼角桃花 2021-01-15 12:59

I\'m writing a mobilesubstrate tweak for jailbroken devices that displays an icon in the statusbar if a defined app has a notification using libstatusbar

I\'m havin

相关标签:
2条回答
  • 2021-01-15 13:59

    After looking through the file system I found my answer. To get application notification count for a givin app. Check the plist located at: /var/mobile/Library/SpringBoard/applicationState.plist>com.app.identifier>SBApplicationBadgeKey

    0 讨论(0)
  • 2021-01-15 14:01

    I believe there are two notifications which looks similar, but internally goes through different execution routes: local notification and remote push notifications.

    I don't have exact answer. Couple of ideas, direction, where I would look for:

    API's in private framework SpringboardServices

    • Objective C SBSPushStore class
    • Bunch of C API's SBSPush*

    There is ApplePushService private framework. I believe it provides a connection through which remote notifications are received.

    Also, there is a BulletinBoardService. I believe this one is related to showing the list of notifications. My guess, that it may store notifications.

    0 讨论(0)
提交回复
热议问题