-
-
[求助]关于apns的payload hook问题
-
发表于: 2020-12-18 10:32 15005
-
最近在研究push notification 的hook。网上找到了一个私有方法可以不过只能hook到title message。
1 2 3 4 5 6 7 8 | % 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到
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | { "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" } } |
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!
赞赏
看原图
赞赏
雪币:
留言: