关于apns的payload hook问题。

最近在研究push notification 的hook。网上找到了一个私有方法可以不过只能hook到title message。

%hook BBServer
-(void)_publishBulletinRequest:(id)arg1 forSectionID:(id)arg2 forDestinations:(unsigned long long)arg3 alwaysToLockScreen:(BOOL)arg4 {
    BBBulletinRequest* request = ((BBBulletinRequest*)arg1);
    NSString* appId = (NSString*)arg2;
    NSLog(@"NOTIFICATION RECEIVED: %@ - %@, %@, %@, %@", appId, request.title, request.subtitle, request.message, request.summaryArgument);
    %orig;
}
%end

不知道老铁们有木有思路。能把aps以外到整个apns发送到整个payload也hook到

{
	"aps":{
		"alert":"哈哈哈1111234",
		"sound":"default",
		"badge":1
	},
	"rc":{
             "cType":"PR",
             "fId":"2121",
             "oName":"RC:TxtMsg",
             "tId":"3232",
             "id":"5FSClm2gQ9V9BZ-kUZn58B",
             "rc-dlt-identifier":"2FSClm2gQ9Q9BZ-kUZn54B"
     }
	
}