1.  配置所需的推送证书。参考 http://www.apblog.cn/blog/2013/09/14/ios-push-notification-prepare/。
  2. 导出.p12证书
  3. 将导出的证书转pem格式 参考 http://weibo.com/ttarticle/p/show?id=2309403982594164270125
  4. 下载api  http://xg.qq.com/xg/ctr_index/download
  5. 配置应用。
  6. 把demo中的id key 换成自己的,真机运行。