版本3.9.1,初始化就崩溃

yoyo0926
2019-10-06 16:33 135 0

刚下载的新版本,初始化就崩溃,上代码:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {

    NSLog(@"JMessagePlugin didFinishLaunchingWithOptions");

    NSLog(@"JMessagePlugin launchOptions %@",launchOptions);
    /*!
     * @abstract 初始化 JMessage SDK
     *
     * @param launchOptions    AppDelegate启动函数的参数launchingOption(用于推送服务)
     * @param appKey           appKey(应用Key值,通过JPush官网可以获取)
     * @param channel          应用的渠道名称
     * @param isProduction     是否为生产模式
     * @param category         iOS8新增通知快捷按钮参数
     * @param isRoaming        是否启用消息漫游,默认关闭
     *
     * @discussion 此方法必须被调用, 以初始化 JMessage SDK
     *
     * 如果未调用此方法, 本 SDK 的所有功能将不可用.
     */

    // Required - 启动 JMessage SDK
    [JMessage setupJMessage:launchOptions
                     appKey:@"xxxx"
                    channel:nil
           apsForProduction:NO
                   category:nil
             messageRoaming:NO
     ];
    // Required - 注册 APNs 通知
//    [[[DCRichAlertModule alloc] init] setupJMessage:launchOptions
//                        appKey:JPushIMConfig[kJPushIMConfig_appkey]
//                    channel:JPushIMConfig[kJPushIMConfig_channel]
//                                             apsForProduction:false
//                                                       category:nil
//                                                 messageRoaming:YES];
    return YES;
}

setupJMessage只要执行,app就崩溃

1个回答

热门排序