最新消息:20210917 已从crifan.com换到crifan.org

[已解决]给极光推送JPUSH设置为生产环境

MobilePlatform crifan 2966浏览 0评论

之前代码:

let JpushAppKey:String      = "3axxxda3"
//  masterSecret: 75byyyye98e5
let JpushChannel:String    = "iOS-AppStore"
let JpushIsProduction:Bool  = false
        //1.reggister device
        JPUSHService.registerForRemoteNotificationTypes(UIUserNotificationType.Badge.rawValue | UIUserNotificationType.Sound.rawValue | UIUserNotificationType.Alert.rawValue , categories: nil)
        JPUSHService.setupWithOption(launchOptions, appKey: JpushAppKey, channel: JpushChannel, apsForProduction: JpushIsProduction)

改为:

let JpushAppKey:String      = "3axxxda3"
//  masterSecret: 75b70670870933f8333e98e5
let JpushChannel:String    = "iOS-AppStore"
//let JpushIsProduction:Bool  = false
let JpushIsProduction:Bool  = true

然后去服务器端看看:

JPush iOS 集成指南 – 极光文档

[已解决]创建iOS生产环境的开发证书p12文件

得到了:

简道Push证书_production.p12

然后上传到服务器上:

JPush极光推送-专业的Android消息推送和IOS消息推送服务领导者

好像是需要添加上密码?

转载请注明:在路上 » [已解决]给极光推送JPUSH设置为生产环境

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
92 queries in 0.190 seconds, using 23.35MB memory