2

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.

Andy G
  • 19,232
  • 5
  • 47
  • 69
CokePokes
  • 941
  • 3
  • 12
  • 25

2 Answers2

2

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.

Victor Ronin
  • 22,758
  • 18
  • 92
  • 184
  • I'd give a close look at all the BulletinBoard stuff, that's the codename for the Notification Center... And because the NC shows a list of notifications, it must have it saved somewhere ;) – EliaCereda Sep 10 '13 at 16:44
  • @Victor Thanks. I couldn't find exactly what I needed but it was close. I was looking for at least an integer to show & remove my image from the statusbar. I can only dismiss my image when the app is loaded. That's about the only way I could tell if the user knew they had notifications and checked. – CokePokes Sep 11 '13 at 00:53
1

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

CokePokes
  • 941
  • 3
  • 12
  • 25