2014-01-21 2 views
1

채팅 응용 프로그램에 QuickBlox를 사용 중입니다. 앱이 때때로 검은 화면으로 변합니다.quickblox iOS가 검은 색 화면으로 손상됨

새로운 LOG :

2014-01-24 01:54:42.302 Chat[5670:310b] Performing async request: 

POST http://api.quickblox.com/session.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 5b25119abfa4c89aced5068a1b2d151b19b77e86; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    "application_id" = 4354; 
    "auth_key" = yYBXmUnyvpYPMe5; 
    nonce = 125; 
    signature = a65c0971fa81ca8c79805b3ed4d7052e0ee5c059; 
    timestamp = 1390499682; 
} 
2014-01-24 01:54:42.352 Chat[5670:7b1b] -[QBChat xmppStream:didSendPresence:] -> Presence: <presence/> 
2014-01-24 01:54:42.352 Chat[5670:60b] chatDidFailWithError: 1 
2014-01-24 01:54:42.353 Chat[5670:7b1b] QBChat/didDisconnect, error: Error Domain=GCDAsyncSocketErrorDomain Code=7 "Socket closed by remote peer" UserInfo=0x1565dbe0 {NSLocalizedDescription=Socket closed by remote peer} 
2014-01-24 01:54:43.031 Chat[5670:60b] result is: <QBAAuthSessionCreationResult: 0x155830c0> 
2014-01-24 01:54:43.032 Chat[5670:7b1b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    Connection = "keep-alive"; 
    "Content-Length" = 524; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:41 GMT"; 
    Etag = "\"3472cc7b5b8d9c8d5fff89fbfdb73931\""; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:41 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "201 Created"; 
    "X-Rack-Cache" = "invalidate, pass"; 
    "X-Request-Id" = 2048340bfb6b9a87dd400a79a4b0a40c; 
    "X-Runtime" = "0.014610"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<session> 
    <_id>52e15761535c120d6e00523d</_id> 
    <application-id type="integer">4354</application-id> 
    <created-at type="datetime">2014-01-23T17:54:41Z</created-at> 
    <device-id type="integer">0</device-id> 
    <nonce type="integer">125</nonce> 
    <token>8564a56a8744464e61afdbb370c2d02cc3d940a6</token> 
    <ts type="integer">1390499682</ts> 
    <updated-at type="datetime">2014-01-23T17:54:41Z</updated-at> 
    <user-id type="integer">0</user-id> 
    <id type="integer">31413</id> 
</session> 
error: 

2014-01-24 01:54:43.042 Chat[5670:7b1b] Performing async request: 

POST http://api.quickblox.com/login.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 8564a56a8744464e61afdbb370c2d02cc3d940a6; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    login = hehe; 
    password = 12345678; 
} 
2014-01-24 01:54:43.741 Chat[5670:7b1b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "no-cache"; 
    Connection = "keep-alive"; 
    "Content-Length" = 590; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:41 GMT"; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:41 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "202 Accepted"; 
    "X-Rack-Cache" = "invalidate, pass"; 
    "X-Request-Id" = eab9d8949c044d1af3b0282222931428; 
    "X-Runtime" = "0.015342"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<user> 
    <blob-id type="integer" nil="true"/> 
    <created-at type="datetime">2014-01-23T15:47:06Z</created-at> 
    <email nil="true"/> 
    <external-user-id type="integer" nil="true"/> 
    <facebook-id nil="true"/> 
    <full-name nil="true"/> 
    <id type="integer">806773</id> 
    <last-request-at type="datetime" nil="true"/> 
    <login>hehe</login> 
    <owner-id type="integer">5464</owner-id> 
    <phone nil="true"/> 
    <twitter-id nil="true"/> 
    <updated-at type="datetime">2014-01-23T15:47:06Z</updated-at> 
    <website nil="true"/> 
    <user-tags nil="true"/> 
</user> 
error: 

2014-01-24 01:54:43.749 Chat[5670:7b1b] -[QBChat loginWithUser:] -> Chat server endpoint: muc.chat.quickblox.com, User JID: [email protected] 
2014-01-24 01:54:43.770 Chat[5670:7b1b] Performing async request: 

POST http://api.quickblox.com/push_tokens.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 8564a56a8744464e61afdbb370c2d02cc3d940a6; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    "device[platform]" = iOS; 
    "device[udid]" = "D44DD5B1-A5B3-4E61-B761-A4DE8BB28F72"; 
    "push_token[client_identification_sequence]" = 8efc776c0ea913f3cd8785f68bb4d7f3bb3a5ffcfde76ed1beab1181d8aae8af; 
    "push_token[environment]" = development; 
} 
2014-01-24 01:54:44.168 Chat[5670:7b1b] Performing async request: 

POST http://api.quickblox.com/session.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 8564a56a8744464e61afdbb370c2d02cc3d940a6; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    "application_id" = 4354; 
    "auth_key" = yYBXmUnyvpYPMe5; 
    nonce = 524; 
    signature = ce2521946486c0fb579a41f56e067661c059358b; 
    timestamp = 1390499684; 
} 
2014-01-24 01:54:44.169 Chat[5670:7b1b] Performing async request: 

POST http://api.quickblox.com/session.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 8564a56a8744464e61afdbb370c2d02cc3d940a6; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    "application_id" = 4354; 
    "auth_key" = yYBXmUnyvpYPMe5; 
    nonce = 484; 
    signature = 9da8fc95d9de0819b5f12ebefdf421e569adf2f3; 
    timestamp = 1390499684; 
} 
2014-01-24 01:54:44.417 Chat[5670:7b1b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    Connection = "keep-alive"; 
    "Content-Length" = 272; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:42 GMT"; 
    Etag = "\"36f956ca6271157cf23485a0efdd1770\""; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:42 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "201 Created"; 
    "X-Rack-Cache" = "invalidate, pass"; 
    "X-Request-Id" = 6d05ab80975f4f00042664f0cbcc1896; 
    "X-Runtime" = "0.033340"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<push-token> 
    <client-identification-sequence>8efc776c0ea913f3cd8785f68bb4d7f3bb3a5ffcfde76ed1beab1181d8aae8af</client-identification-sequence> 
    <environment>development</environment> 
    <id type="integer">588770</id> 
</push-token> 
error: 

2014-01-24 01:54:44.425 Chat[5670:7b1b] Performing async request: 

POST http://api.quickblox.com/subscriptions.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 8564a56a8744464e61afdbb370c2d02cc3d940a6; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    "notification_channels" = apns; 
} 
2014-01-24 01:54:44.780 Chat[5670:310b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    Connection = "keep-alive"; 
    "Content-Length" = 524; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:42 GMT"; 
    Etag = "\"6fd90ffd8e3f5d10150f0acad6a0d46c\""; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:42 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "201 Created"; 
    "X-Rack-Cache" = "invalidate, pass"; 
    "X-Request-Id" = ce446bfab2d31c37e9e5ffc302603b8b; 
    "X-Runtime" = "0.015738"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<session> 
    <_id>52e15762535c12b64600503e</_id> 
    <application-id type="integer">4354</application-id> 
    <created-at type="datetime">2014-01-23T17:54:42Z</created-at> 
    <device-id type="integer">0</device-id> 
    <nonce type="integer">524</nonce> 
    <token>28ccd997f46ae70d9deec08d3e4a936881357ba7</token> 
    <ts type="integer">1390499684</ts> 
    <updated-at type="datetime">2014-01-23T17:54:42Z</updated-at> 
    <user-id type="integer">0</user-id> 
    <id type="integer">17423</id> 
</session> 
error: 

2014-01-24 01:54:44.782 Chat[5670:60b] result is: <QBAAuthSessionCreationResult: 0x155825d0> 
2014-01-24 01:54:44.788 Chat[5670:310b] Performing async request: 

POST http://api.quickblox.com/login.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 28ccd997f46ae70d9deec08d3e4a936881357ba7; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    login = hehe; 
    password = 12345678; 
} 
2014-01-24 01:54:44.800 Chat[5670:60b] result is: <QBAAuthSessionCreationResult: 0x15589e90> 
2014-01-24 01:54:44.796 Chat[5670:7b1b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    Connection = "keep-alive"; 
    "Content-Length" = 524; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:42 GMT"; 
    Etag = "\"1f4ecc5c5bded2167a761a907f23f3e3\""; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:42 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "201 Created"; 
    "X-Rack-Cache" = "invalidate, pass"; 
    "X-Request-Id" = c6da0e923aa3fc6d530f08d298c7332b; 
    "X-Runtime" = "0.014244"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<session> 
    <_id>52e15762535c12df80005377</_id> 
    <application-id type="integer">4354</application-id> 
    <created-at type="datetime">2014-01-23T17:54:42Z</created-at> 
    <device-id type="integer">0</device-id> 
    <nonce type="integer">484</nonce> 
    <token>0744438380a2cbfadf8e859b98d8bab319dd4383</token> 
    <ts type="integer">1390499684</ts> 
    <updated-at type="datetime">2014-01-23T17:54:42Z</updated-at> 
    <user-id type="integer">0</user-id> 
    <id type="integer">27111</id> 
</session> 
error: 

2014-01-24 01:54:44.804 Chat[5670:7b1b] Performing async request: 

POST http://api.quickblox.com/login.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 0744438380a2cbfadf8e859b98d8bab319dd4383; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    login = hehe; 
    password = 12345678; 
} 
2014-01-24 01:54:45.029 Chat[5670:380b] QBChat/didConnect 
2014-01-24 01:54:45.059 Chat[5670:60b] Push notification subscribed 
2014-01-24 01:54:45.058 Chat[5670:310b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    Connection = "keep-alive"; 
    "Content-Length" = 67; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:43 GMT"; 
    Etag = "\"4f31ca96db448bb738a3923db737871d\""; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:43 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "201 Created"; 
    "X-Rack-Cache" = "invalidate, pass"; 
    "X-Request-Id" = 9507e38031c78305d16b88a73e000557; 
    "X-Runtime" = "0.024274"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<nil-classes type="array"/> 
error: 

2014-01-24 01:54:45.430 Chat[5670:380b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "no-cache"; 
    Connection = "keep-alive"; 
    "Content-Length" = 590; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:43 GMT"; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:43 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "202 Accepted"; 
    "X-Rack-Cache" = "invalidate, pass"; 
    "X-Request-Id" = 4bfc06211bb0c0f97dd09f41ae92cff1; 
    "X-Runtime" = "0.015643"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<user> 
    <blob-id type="integer" nil="true"/> 
    <created-at type="datetime">2014-01-23T15:47:06Z</created-at> 
    <email nil="true"/> 
    <external-user-id type="integer" nil="true"/> 
    <facebook-id nil="true"/> 
    <full-name nil="true"/> 
    <id type="integer">806773</id> 
    <last-request-at type="datetime" nil="true"/> 
    <login>hehe</login> 
    <owner-id type="integer">5464</owner-id> 
    <phone nil="true"/> 
    <twitter-id nil="true"/> 
    <updated-at type="datetime">2014-01-23T15:47:06Z</updated-at> 
    <website nil="true"/> 
    <user-tags nil="true"/> 
</user> 
error: 

2014-01-24 01:54:45.436 Chat[5670:811b] -[QBChat loginWithUser:] -> Chat server endpoint: muc.chat.quickblox.com, User JID: [email protected] 
2014-01-24 01:54:45.442 Chat[5670:310b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "no-cache"; 
    Connection = "keep-alive"; 
    "Content-Length" = 590; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:43 GMT"; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:43 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "202 Accepted"; 
    "X-Rack-Cache" = "invalidate, pass"; 
    "X-Request-Id" = 99a2c81bc8c28fddbcd7e3a134243ca3; 
    "X-Runtime" = "0.014854"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<user> 
    <blob-id type="integer" nil="true"/> 
    <created-at type="datetime">2014-01-23T15:47:06Z</created-at> 
    <email nil="true"/> 
    <external-user-id type="integer" nil="true"/> 
    <facebook-id nil="true"/> 
    <full-name nil="true"/> 
    <id type="integer">806773</id> 
    <last-request-at type="datetime" nil="true"/> 
    <login>hehe</login> 
    <owner-id type="integer">5464</owner-id> 
    <phone nil="true"/> 
    <twitter-id nil="true"/> 
    <updated-at type="datetime">2014-01-23T15:47:06Z</updated-at> 
    <website nil="true"/> 
    <user-tags nil="true"/> 
</user> 
error: 

2014-01-24 01:54:45.448 Chat[5670:310b] -[QBChat loginWithUser:] -> Chat server endpoint: muc.chat.quickblox.com, User JID: [email protected] 
2014-01-24 01:54:45.464 Chat[5670:310b] Performing async request: 

POST http://api.quickblox.com/push_tokens.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 0744438380a2cbfadf8e859b98d8bab319dd4383; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    "device[platform]" = iOS; 
    "device[udid]" = "D44DD5B1-A5B3-4E61-B761-A4DE8BB28F72"; 
    "push_token[client_identification_sequence]" = 8efc776c0ea913f3cd8785f68bb4d7f3bb3a5ffcfde76ed1beab1181d8aae8af; 
    "push_token[environment]" = development; 
} 
2014-01-24 01:54:46.107 Chat[5670:7b1b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    Connection = "keep-alive"; 
    "Content-Length" = 272; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:44 GMT"; 
    Etag = "\"36f956ca6271157cf23485a0efdd1770\""; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:44 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "201 Created"; 
    "X-Rack-Cache" = "invalidate, pass"; 
    "X-Request-Id" = a4319db211a2253aa7e98511d449e616; 
    "X-Runtime" = "0.042459"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<push-token> 
    <client-identification-sequence>8efc776c0ea913f3cd8785f68bb4d7f3bb3a5ffcfde76ed1beab1181d8aae8af</client-identification-sequence> 
    <environment>development</environment> 
    <id type="integer">588770</id> 
</push-token> 
error: 

2014-01-24 01:54:46.110 Chat[5670:7b1b] Performing async request: 

POST http://api.quickblox.com/subscriptions.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 0744438380a2cbfadf8e859b98d8bab319dd4383; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    "notification_channels" = apns; 
} 
2014-01-24 01:54:46.266 Chat[5670:811b] -[QBChat xmppStreamDidAuthenticate:] -> user: 806773, supportsStartTLS: 1, isSecure: 0 
2014-01-24 01:54:46.273 Chat[5670:310b] Performing async request: 

GET http://api.quickblox.com/data/Post.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 0744438380a2cbfadf8e859b98d8bab319dd4383; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    "sort_asc" = datetime; 
} 
2014-01-24 01:54:46.276 Chat[5670:310b] Performing async request: 

GET http://api.quickblox.com/data/Contact.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 0744438380a2cbfadf8e859b98d8bab319dd4383; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    "contact_id" = 806773; 
} 
2014-01-24 01:54:46.280 Chat[5670:310b] Performing async request: 

GET http://api.quickblox.com/data/Contact.xml 

headers:{ 
    "QB-SDK" = "iOS 1.8"; 
    "Qb-Token" = 0744438380a2cbfadf8e859b98d8bab319dd4383; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
} 

parameters:{ 
    "user_identifier" = 806773; 
} 
2014-01-24 01:54:46.281 Chat[5670:310b] -[QBChat xmppStream:didSendIQ:] -> IQ: <iq type="get" id="5610067"><query xmlns="jabber:iq:roster"/></iq> 
2014-01-24 01:54:46.282 Chat[5670:310b] -[QBChat xmppStream:didSendPresence:] -> Presence: <presence/> 
2014-01-24 01:54:46.533 Chat[5670:811b] -[QBChat xmppStream:didReceiveIQ:] -> <iq xmlns="jabber:client" id="5610067" type="result" to="[email protected]/tigase-20326"><query xmlns="jabber:iq:roster"/></iq> 
2014-01-24 01:54:46.615 Chat[5670:60b] objects: (null) 
2014-01-24 01:54:46.614 Chat[5670:7b1b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    Connection = "keep-alive"; 
    "Content-Length" = 60; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:44 GMT"; 
    Etag = "\"81779d89d928c6e830957d0cee5976fa\""; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:44 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "304 Not Modified"; 
    "X-Rack-Cache" = miss; 
    "X-Request-Id" = 76bb535a5aa49e342dbf67fc1ae66950; 
    "X-Runtime" = "0.019699"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<data type="array"/> 
error: 

2014-01-24 01:54:46.620 Chat[5670:60b] objects: (null) 
2014-01-24 01:54:46.622 Chat[5670:310b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    Connection = "keep-alive"; 
    "Content-Length" = 60; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:44 GMT"; 
    Etag = "\"81779d89d928c6e830957d0cee5976fa\""; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:44 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "304 Not Modified"; 
    "X-Rack-Cache" = miss; 
    "X-Request-Id" = ea19e51670b676c6b618662924052c99; 
    "X-Runtime" = "0.019819"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<data type="array"/> 
error: 

2014-01-24 01:54:46.703 Chat[5670:60b] Push notification subscribed 
2014-01-24 01:54:46.703 Chat[5670:7b1b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    Connection = "keep-alive"; 
    "Content-Length" = 67; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:44 GMT"; 
    Etag = "\"4f31ca96db448bb738a3923db737871d\""; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:44 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "201 Created"; 
    "X-Rack-Cache" = "invalidate, pass"; 
    "X-Request-Id" = e437212cb4bf3ecfc2170f85f9dbcbfb; 
    "X-Runtime" = "0.022193"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<nil-classes type="array"/> 
error: 

2014-01-24 01:54:46.929 Chat[5670:310b] Request finished, response: 

headers:{ 
    "Access-Control-Allow-Origin" = "*"; 
    "Cache-Control" = "max-age=0, private, must-revalidate"; 
    Connection = "keep-alive"; 
    "Content-Length" = 651; 
    "Content-Type" = "application/xml; charset=utf-8"; 
    Date = "Thu, 23 Jan 2014 17:54:44 GMT"; 
    Etag = "\"bfdd8b18a9743a7d8aa5315262ec961d\""; 
    "QB-Token-ExpirationDate" = "2014-01-23 19:54:44 UTC"; 
    "QuickBlox-REST-API-Version" = "0.1.1"; 
    Server = "nginx/1.0.15"; 
    Status = "304 Not Modified"; 
    "X-Rack-Cache" = miss; 
    "X-Request-Id" = 14ffdcfa6108ebb2614dd90721299f23; 
    "X-Runtime" = "0.020542"; 
    "X-UA-Compatible" = "IE=Edge,chrome=1"; 
} 

body: 

<?xml version="1.0" encoding="UTF-8"?> 
<data type="array" class_name='Post' skip='0' limit='100'> 
    <Post> 
    <_id>52e13bd8535c1278a4004f83</_id> 
    <_parent_id nil="true"/> 
    <created-at type="integer">1390492632</created-at> 
    <datetime type="integer">2014</datetime> 
    <info>entity=post type=text post_identifier=2014a806749 datetime=2014poster_id=806749 blob_id= text=post no</info> 
    <post_identifier>2014a806749</post_identifier> 
    <poster_id>806749</poster_id> 
    <updated-at type="integer">1390492632</updated-at> 
    <user-id type="integer">806749</user-id> 
    </Post> 
</data> 
error: 

2014-01-24 01:54:46.931 Chat[5670:60b] objects: (
    " 
    className:Post      
    createdAt:2014-01-23 15:57:12 +0000      
    updatedAt:2014-01-23 15:57:12 +0000      
    ID:52e13bd8535c1278a4004f83      
    parentID:(null)      
    userID:806749      
    fields:{\n datetime = 2014;\n info = \"entity=post type=text post_identifier=2014a806749 datetime=2014poster_id=806749 blob_id= text=post no\";\n \"post_identifier\" = 2014a806749;\n \"poster_id\" = 806749;\n}      
    permissions:(null)" 
) 
2014-01-24 01:54:47.317 Chat[5670:811b] -[QBChat xmppStream:didSendPresence:] -> Presence: <presence/> 

업데이트 2 :

내가 배경을 입력하면 채팅에 로그인 한 경우, 다음 전경를 입력, 내가 확인합니다이 조건을 사용하여 :.

[QBChat instance].isLoggedIn 

을 (1) 로그인되어 있으면 여러 테이블을 가져옵니다.

(2) 그렇지 않으면 세션을 만들고 lo gin again

내 추측 : [QBChat 인스턴스] .isLoggedIn은 여전히 ​​YES를 반환하지만 백그라운드를 잠시 입력하면 세션이 삭제 될 수 있습니까? 이 경우 테이블을 안전하게 가져올 수 있는지 테스트하려면 어떻게해야합니까?

포 그라운드로 들어간 후 화면이 항상 3 초 이내에 검게 변합니다. 나는 iOS 6/7을 모두 시험해 보았다.

참고 : 화면은 검게 보이지만 앱은 충돌하지 않는다.

-[QBChat xmppStream:didSendPresence:] -> Presence: <presence/> 

UPDATE : 3 : sendPresence 타이머가 여전히 15 초마다 똑딱 때문에 장치 로그 (엑스 코드 주최자)

: 를 그냥 충돌

enter image description here

enter image description here

UPDATE 4를 잡을

Date/Time:   2014-01-23 23:45:40.090 +0800 
OS Version:   iOS 7.0.2 (11A501) 
Report Version:  104 

Exception Type: EXC_BAD_ACCESS (SIGSEGV) 
Exception Subtype: KERN_PROTECTION_FAILURE at 0x0000000027c1fff8 
Triggered by Thread: 0 

Thread 0 Crashed: 
0 libobjc.A.dylib     0x39411751 lookUpImpOrForward + 5 
1 libobjc.A.dylib     0x3941172b lookUpImpOrNil + 23 
2 libobjc.A.dylib     0x3940acb3 class_respondsToSelector + 31 
3 libobjc.A.dylib     0x3941a059 -[NSObject respondsToSelector:] + 29 
4 Chat       0x00141491 -[QBApplicationRedelegate applicationWillResignActive:] (QBApplicationRedelegate.m:111) 
5 Chat       0x001414cd -[QBApplicationRedelegate applicationWillResignActive:] (QBApplicationRedelegate.m:112) 
6 Chat       0x001414cd -[QBApplicationRedelegate applicationWillResignActive:] (QBApplicationRedelegate.m:112) 
7 Chat       0x001414cd -[QBApplicationRedelegate applicationWillResignActive:] (QBApplicationRedelegate.m:112) 
8 Chat       0x001414cd -[QBApplicationRedelegate applicationWillResignActive:] (QBApplicationRedelegate.m:112) 
+0

는 전체 쿼리 –

+0

이 문제와 업데이트를 제공 할 수 없습니다 : 다만 별도의 변수를 생성하고 위임에 YES로 설정 - QBUser가 로그인되어있는 경우

확인하려면? –

+0

@IgorKhomenko 내 iPod touch의 본체를 게시했습니다. – OMGPOP

답변

1

사용자가 로그인 위임 메소드 대신 ChatDidLogin에 푸시 알림을 등록하여 질문을 해결했습니다.

문제는 로그인 사용이 이미 로그인 한 경우에도 성공했기 때문에 푸시 알림을 두 번 등록한다는 것입니다. 이미 로그인 한 경우, 채팅은 실패합니다.

내 응용 프로그램은 지속적으로, 내가 다시 대표로 세션을 생성 로그인하지 않은 경우 서버가 다음에 사용자가 로그인 할,

+ (BOOL)isServerLoggedIn { 
    return [QBChat instance].isLoggedIn; 
} 

로 로그인되어 있는지 여부를 확인 성공하면 로그하고 성공하면 로그로 남깁니다. 이 디자인에 문제가 :

편집

.isLoggedIn 사실이다하지만 [인스턴스가 QBChat] 경우 QBUser가 로그인하지 않은 무엇

? QBUser가 로그인되어 있는지 확인하는 방법은 무엇입니까?

0

채팅 및 REST 서비스에 별도로 로그인 할 수 있습니다.

// QuickBlox queries delegate 
- (void)completedWithResult:(Result *)result{ 

    if(result.success){ 

     // User Login 
     if([result isKindOfClass:QBUUserLogInResult.class]){ 

      self.userLoggedIn = YES; 
     } 
    } 
} 
+0

안녕하세요, 문제는, 사용자가 로그인 할 때 [가끔] 자동으로 로그 아웃됩니다. 사용자가 같은 방법으로 로그인했는지 확인하는 방법이 있습니다. [QBChat 인스턴스] .isLoggedIn? – OMGPOP

+0

또는 오류 대리인 메서드에서 사용자를 로그인 할 수 있습니까? 어느 것? – OMGPOP

+0

내가 얻을 때 금지. 사용자가 필요합니다. 내 터미널에서을 사용하면 어떤 오류 대리 메서드를 사용해야합니까? – OMGPOP

관련 문제