Question

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 having trouble locating where iOS keeps this notification info for each app. Could anyone point me in the right direction/framework?

I don't intend on submitting this to Apple, again it's for jailbroken devices.

Thanks SO.

Était-ce utile?

La solution

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.

Autres conseils

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top