注册

IOS密码锁屏状态 接收消息 提示数据库存储失败

不锁屏接收消息都正常。  应该是数据库没有访问权限 求解决 不然锁屏状态接收的消息都没法存储了
已邀请:

Half12345

赞同来自: fat1

参考新版demo 搜updateMessageExtToDB  对应到你代码里的位置 替换成这个。猜测你是因为这个  可以试试

5

2015-06-29 15:53:57:983 ZhongXiWaiQin[9021:6f13] RECV: <message from='eatdefecat#banni_eatdefecat@easemob.com/mobile' to='eatdefecat#banni_defecat@easemob.com' id='77307854033256864' type='chat'><body>{&quot;to&quot;:&quot;defecat&quot;,&quot;bodies&quot;:[{&quot;type&quot;:&quot;txt&quot;,&quot;msg&quot;:&quot;我来了&quot;}],&quot;from&quot;:&quot;eatdefecat&quot;}</body></message>

2015-06-29 15:53:57:992 ZhongXiWaiQin[9021:7323] begin insert message to chatter::eatdefecat, messageId::77307854033256864

2015-06-29 15:53:57.996 ZhongXiWaiQin[9021:2955867] Unknown error calling sqlite3_step (10: disk I/O error) eu
2015-06-29 15:53:57.997 ZhongXiWaiQin[9021:2955867] DB Query: INSERT INTO 'MessageV1' ('messageId','conversationChatter','mfrom','mto','isGroup','groupSenderName','requireBeforeSend','requireOnServer','deliveryState','messageBodies','ext','mtimestamp','isRead','isReadAcked','isDeliveredAcked','isAnonymous') VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
2015-06-29 15:53:57.998 ZhongXiWaiQin[9021:2955867] Unknown error finalizing or resetting statement (10: disk I/O error)
2015-06-29 15:53:57.999 ZhongXiWaiQin[9021:2955867] DB Query: INSERT INTO 'MessageV1' ('messageId','conversationChatter','mfrom','mto','isGroup','groupSenderName','requireBeforeSend','requireOnServer','deliveryState','messageBodies','ext','mtimestamp','isRead','isReadAcked','isDeliveredAcked','isAnonymous') VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)

2015-06-29 15:53:57:994 ZhongXiWaiQin[9021:8313] SEND: <message to="eatdefecat#banni_eatdefecat@easemob.com/mobile" id="77307854033256864"><received xmlns="urn:xmpp:receipts" id="77307854033256864"/></message>
2015-06-29 15:53:58:000 ZhongXiWaiQin[9021:7323] end insert message with account::defecat, to chatter::eatdefecat, messageId::77307854033256864, result::NO
你这个是必现的吗?用的什么版本sdk?NSLog(@"打印iOS环信SDK版本号:%@",[EaseMob sharedInstance].sdkVersion);

 

要回复问题请先登录注册