Question

I know just enough about programming to know that what I'm asking for should be possible, but I have no idea how to make it happen. Hopefully someone here can help me out :)

My iPhone is jailbroken and working great. Just 1 problem. My Notification Center resets to defaults after a respring. I've tried various fixes that the general jailbreak community suggested, but nothing works. I have to go into the Notification Center settings and set it back up to my liking, and then it works perfectly until the next time I respring, and it all goes back to defaults again. And if you've ever had a jailbroken iPhone then you know that between installing tweaks and themes and all that, resprings are common.

Basically my idea was to have a script that runs automatically after a respring to configure the Notification Center back to how I like it. It would just automate the process of flipping a few toggles and reordering the apps that show up in the NC. In my mind this doesn't sound too complicated, just some boolean type stuff, but again, with my very limited knowledge of programming, I could be oblivious to what all would go into something like this.

So what do you guys think, would this be possible? Hopefully not too difficult? If you want to know the settings I would like to change I can provide that info.

Was it helpful?

Solution

Notification Center stores it's settings in /var/mobile/Library/BulletinBoard. You probably will be interested in files SectionInfo.plist and SectionOrder.plist At first, try checking their permissions, it can be a possible cause of them not being saved. It should be -rw-r--r-- mobile:mobile. You can make backup of this files and restore them when your NC gets messed up again, or write a script and run it from terminal, something like

cp /var/mobile/Library/BulletinBoard/SectionInfo.plist_backup /var/mobile/Library/BulletinBoard/SectionInfo.plist
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top