上传证书不正确,请上传推送证书


(杨军明) #1

上传证书老是提示“上传证书不正确,请上传推送证书”,请问"生产环境: 未上传"这个是在哪里吗,有没有相关的生成的步骤看,我不知道是不是我弄错了


#2

(杨军明) #3

您好,请问有没有相关的对应步骤的吗,我看看哪里的错


#4

总结中已经将配置教程的链接提供出来了


(杨军明) #5

您好,请问一下,哪个方法是接收后台推送给我消息的事件吗?


#6

https://docs.jiguang.cn/jpush/client/iOS/ios_api/#apns
https://docs.jiguang.cn/jpush/client/iOS/ios_api/#_51


(杨军明) #7

您好,请问就是我的苹果9.0的系统无法获取registrationID,10.0以上的系统没有问题,请问是什么问题导致的吗,我使用的方法是

- (void)application:(UIApplication *)application
didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
    /// Required - 注册 DeviceToken
    [JPUSHService registerDeviceToken:deviceToken];
    
    NSNotificationCenter *defaultCenter = [NSNotificationCenter defaultCenter];
    
    [defaultCenter addObserver:self
     
                      selector:@selector(networkDidLogin:)
     
                          name:kJPFNetworkDidLoginNotification
     
                        object:nil];
}

- (void)networkDidLogin:(NSNotification *)notification {
    
    [JPUSHService registrationIDCompletionHandler:^(int resCode, NSString *registrationID) {
        if(resCode == 0){
            NSLog(@"registrationID获取成功:%@",registrationID);
            NSUserDefaults *userPhoneDefaults = [NSUserDefaults standardUserDefaults];
            [userPhoneDefaults setObject:registrationID forKey:@"registrationID"];
            //立即保存
            [userPhoneDefaults synchronize];
            
            [JPUSHService setAlias:@"12345"  callbackSelector:nil object:nil];
        }
        else{
            NSLog(@"registrationID获取失败,code:%d",resCode);
        }
    }];
    
}

#8

1、请说明使用的SDK的版本
2、请提供iOS9的集成日志,完整的


(杨军明) #9
Aug  9 13:24:07  Tribe[8955] <Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Aug  9 13:24:07  Tribe[8955] <Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Aug  9 13:24:07  Tribe[8955] <Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
2017-08-09 13:24:07.316 Tribe[8955:3390340] You've implemented -[<UIApplicationDelegate> application:didReceiveRemoteNotification:fetchCompletionHandler:], but you still need to add "remote-notification" to the list of your supported UIBackgroundModes in your Info.plist.
2017-08-09 13:24:07.373 Tribe[8955:3390340] 13711889218
2017-08-09 13:24:07.972 Tribe[8955:3390340] 登录成功
2017-08-09 13:24:08.256 | JIGUANG | I - [JIGUANGService] 
--------------------------- JPush Log ----------------------------
--------------------JPush SDK Version:3.0.5--build:36----------
--------------------JCore Lib Version:1.1.3--build:21----------
-----------------AppKey:a16b7d510012ab1c87575a4f----------------
----------------------------------------------------------------
2017-08-09 13:24:08.258 Tribe[8955:3390340] [-[AppDelegate application:didFinishLaunchingWithOptions:][line:142]] 1EE64CDE-A9F9-4D65-9BE9-9DAEC590B55B
2017-08-09 13:24:08.259 | JIGUANG | I - [JIGUANGClientController] Action - jpush setup
2017-08-09 13:24:08.260 | JIGUANG | I - [JIGUANGClientController] Action - setup
2017-08-09 13:24:08.594 Tribe[8955:3390340] 13711889218
2017-08-09 13:24:08.892 Tribe[8955:3390340] en0 => {
	SSIDDATA = <5958424c 5f4b465f 3547>;
	BSSID = f4:83:cd:5b:a5:ef;
	SSID = YXBL_KF_5G;
}
2017-08-09 13:24:09.099 Tribe[8955:3390340] [-[AppDelegate webViewUserAger]_block_invoke[line:499]] {
  "flg" : "yxbl_app/iphone",
  "userId" : "1323",
  "userName" : "张安安"
}
2017-08-09 13:24:09.105 Tribe[8955:3390340] Mozilla/5.0 (iPhone; CPU iPhone OS 9_0 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13A344
2017-08-09 13:24:10.383 | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed?  or there is no APNs register code? Please refer to JPush docs.

2017-08-09 13:24:12.387 | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed?  or there is no APNs register code? Please refer to JPush docs.

2017-08-09 13:24:14.387 | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed?  or there is no APNs register code? Please refer to JPush docs.

2017-08-09 13:24:16.385 | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed?  or there is no APNs register code? Please refer to JPush docs.

2017-08-09 13:24:18.386 | JIGUANG | W - [JIGUANGClientController] Not get deviceToken yet. Maybe: your certificate not configured APNs? or current network is not so good so APNs registration failed?  or there is no APNs register code? Please refer to JPush docs.

(杨军明) #10

你看看是什么问题导致的,


#11

(杨军明) #12

any ios sdk 需要删除吗,只是9.0的系统不行哦


#13

报token问题先根据上面的链接排查,你所说的这个删除是指的这个方案里面提到的any sdk吗?是对不同报错的处理,但你也可以尝试操作一下


(杨军明) #14

现在又可以了, 请问一下,获取这个你们是走异步的,请问您有没有什么好建议吗,不然有时候要是网络比较差的话,获取不到,就会导致请求出问题,您们给出什么建议吗


#15