Question

I was wondering, what header/function I have to hook into to customize or block banner notifications in iOS 5? I have tried many functions so far but none of them seem to work anymore.

Any help is truly appreciated.

THX!!

Was it helpful?

Solution

Try hooking - (void)_presentBannerForItem:(id)arg1 method within SBBulletinBannerController. If you are using Theos, then the following code snippet should prevent the banner notification from being presented. For more control, look into other methods in this class

#import <SpringBoard/SpringBoard.h>

%hook SBBulletinBannerController

- (void)_presentBannerForItem:(id)arg1
{
    %log;

}
%end
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top