从layerkit ios错误中获取messege

时间:2016-02-29 10:54:33

标签: ios layerkit

我正在通过图层工具包iOS SDK创建一个组。组的所有者在创建组时向参与者发送推送和一条消息。问题是当参与者获取消息时,会话对象有时会变为空,下面是我的代码

query = [LYRQuery queryWithQueryableClass:[LYRConversation class]];
 query.predicate = [LYRPredicate predicateWithProperty:@"identifier" predicateOperator:LYRPredicateOperatorIsEqualTo value:eventDetail[@"layerConversation"]];
NSError *error = nil;
conversation = [[self.layerClient executeQuery:query error:&error] firstObject];

NSLog(@"%@?????????????????? and layer client  %@",conversation, self.layerClient );

0 个答案:

没有答案