推送通知之模拟服务器 pushmebaby

2020-06-02  本文已影响0人  adalillian

error total:

1. Compiling IB documents for earlier than ios 7 is no longer supported。(编译比ios7更早的IB文档不再受支持。) 

找到报错的IB,将Interface Builder Document中的Builders for改为“iOS 7.0 and Later”即可。

2. mactypes.h file not found

#include <CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h> 这句del

3. 拖入证书到项目里面, 在pushmebuby的delegate文件里面, cer证书的名字,保持和你拖入的证书的名字一致。如果是调试阶段就拖入  调试阶段的推送的证书,如果是发布阶段,就拖入发布阶段的推送的证书。

4. deviceToken:填写进去 37e56a6f 2d476f21 fe597a59 04887034 f926d377 88314466 9dcb6057 f7d5978b

5. 发送推送的过程: 公司自己的服务器, 发送到苹果服务器, 苹果服务器发送给我们到手机和程序。 

意思是我需要提供给 服务器那边:

 1. 我的手机的deviceToken, 

2. 指定的服务器格式告诉服务器端:{"aps":{"alert":"hello.hello.hello..","badge":1,"sound":"default","content-available":"every word"}}

3. 一个是我的调试证书 和 发布证书 。 

上一篇 下一篇

猜你喜欢

热点阅读