zoukankan      html  css  js  c++  java
  • iOS 极光推送

    0,ios9 HTTP网络配置

      <key>NSAppTransportSecurity</key> 
      <dict> 
        <key>NSAllowsArbitraryLoads</key> 
        <true/> 
      </dict>            
    

     文章参考JPush官方文档:http://docs.jiguang.cn/guideline/ios_guide/

    1,用具有推送选项的APP ID 分别创建推送带SSL的开发证书(Development) 和 生产证书(Distribution), 并导出为.p12

    2,创建描述性文件,provision profile ,安装到Xcode,并选择

    3,JPush官网推送 集成应用信息,bundleID在工程和Jpush官网一致

    4,Xcode可视化配置 ,选项Capabilities 里开启Remote notifications

    5,导入lib里面的类库,添加支持的框架

    6,创建Property List文件命名为PushConfig.plist,包含三个字段,CHANNEL ,APP_KEY,APS_FOR_PRODUCTION

    7,APPDelegate.h里配置以上三个字段的值,

      static NSString *appKey = @"5a780dd3f2b5a53a7dda6e0e";

      static NSString *channel = @"Publish channel";

      static BOOL isProduction = 0;

    8,APPDelegate.h添加注册方法,分别是三个版本的,可以都添加进去,以第一个调用的为准

    9,APPDelegate.m调用代码

    10,JPush官网推送信息

  • 相关阅读:
    Async、Await
    CommandLineParser命令行解析类
    Dispose in c#
    授权oAuth
    Hadoop技术内幕1——源代码环境准备
    postgreSql——时区问题
    Linux命令3——c
    Linux命令2——b
    Linux命令1——a
    hadoop的Linux操作
  • 原文地址:https://www.cnblogs.com/OC888/p/5678389.html
Copyright © 2011-2022 走看看