PushMeBaby 使用

时间:2023-03-08 19:35:53
PushMeBaby 使用

github 下载地址

https://github.com/stefanhafeneger/PushMeBaby

1.执行假设报错,那么导入CoreServices.framawork

替换这句 #include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>  为  #include <MacTypes.h>

2.把你的开发证书.cer 文件更改名为apns.cer,放入project中,代码中是通过

self.certificate = [[NSBundle mainBundle] pathForResource:@"apns" ofType:@"cer”];取你的证书文件的

3.在输入框中粘贴进去你的deviceToken,注意不要带<>。空格能够有

4.能够开心的測试了~