Skip to content

Instantly share code, notes, and snippets.

View soulfly's full-sized avatar

Mr. software craftsman soulfly

View GitHub Profile
@soulfly
soulfly / QBMessageStatusesManager.java
Created September 7, 2015 12:49
QBMessageStatusesManager
package com.quickblox.chat;
import com.quickblox.chat.model.QBChatMarkersExtension;
import com.quickblox.chat.model.QBChatMessage;
import com.quickblox.chat.model.QBChatMessageExtension;
import com.quickblox.chat.utils.Utils;
import org.jivesoftware.smack.PacketListener;
import org.jivesoftware.smack.SmackException;
import org.jivesoftware.smack.XMPPConnection;
@soulfly
soulfly / gist:fb0ed3e78a7333cabe39
Created July 31, 2015 15:02
QM Android lFB login issue
--------- beginning of /dev/log/system
07-31 18:00:47.675 373-373/? I/ActivityManager﹕ START u0 {act=SSO_WITH_FALLBACK cmp=com.quickblox.q_municate/com.facebook.LoginActivity (has extras)} from pid 25675
--------- beginning of /dev/log/main
07-31 18:00:47.761 25675-25675/? I/Choreographer﹕ Skipped 38 frames! The application may be doing too much work on its main thread.
07-31 18:00:47.894 25675-25675/? D/QBASDK﹕ onActivityResumed0
07-31 18:00:48.065 32566-32566/? I/Keyboard.Facilitator﹕ onFinishInput()
07-31 18:00:48.136 373-388/? I/ActivityManager﹕ Displayed com.quickblox.q_municate/com.facebook.LoginActivity: +349ms
07-31 18:00:48.565 25675-25675/? D/QBASDK﹕ onActivityStopped0
07-31 18:00:48.995 25675-25675/? D/QBASDK﹕ onActivityResumed0
07-31 18:00:49.050 25675-25675/? D/CALL_INTEGRATION﹕ construct QBVideoChatHelper
@soulfly
soulfly / android issue
Created July 14, 2015 12:26
android issue
07-14 15:24:59.104 4351-4372/? D/dalvikvm﹕ WAIT_FOR_CONCURRENT_GC blocked 21ms
07-14 15:24:59.143 4192-4192/com.quickblox.sample.chat E/BroadcastReceiver﹕ BroadcastReceiver trying to return result during a non-ordered broadcast
java.lang.RuntimeException: BroadcastReceiver trying to return result during a non-ordered broadcast
at android.content.BroadcastReceiver.checkSynchronousHint(BroadcastReceiver.java:783)
at android.content.BroadcastReceiver.setResultCode(BroadcastReceiver.java:549)
at com.quickblox.sample.chat.pushnotifications.GcmBroadcastReceiver.onReceive(GcmBroadcastReceiver.java:17)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:2424)
at android.app.ActivityThread.access$1500(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1332)
at android.os.Handler.dispatchMessage(Handler.java:99)
@soulfly
soulfly / qb.greetings.html
Last active August 29, 2015 14:22
Example of greetings page
<html>
<head>
<meta charset="UTF-8">
<title>Welcome to #{app.title}</title>
</head>
<body style="margin: 0; padding: 0;">
<style>
<!-- a:hover {
@soulfly
soulfly / qb.reset_password.html
Last active August 29, 2015 14:22
Example of reset password page
<html>
<head>
<meta charset="UTF-8">
<title>#{app.title}: password reset</title>
</head>
<body style="margin: 0; padding: 0;">
<style>
<!-- a:hover {
2015-03-26 12:35:15.910 Snippets[18083:690585] json parsed
2015-03-26 12:35:19.593 Snippets[18083:690618] -[QBChat loginWithUser:resource:] -> Connecting to Chat, host: chattuul.quickblox.com, user JID: 1773235-13989@chattuul.quickblox.com/iPhone6Plus
2015-03-26 12:35:20.667 Snippets[18083:690619] QBChat/DidConnect
2015-03-26 12:35:20.667 Snippets[18083:690619] -[QBChat xmppStreamDidConnect:] -> Trying TLS...
2015-03-26 12:35:21.852 Snippets[18083:690655] -[QBChat xmppStreamDidSecure:] -> isSecure: YES
2015-03-26 12:35:22.261 Snippets[18083:690618] QBChat/DidConnect
2015-03-26 12:35:23.338 Snippets[18083:690655] -[QBChat xmppStreamDidAuthenticate:] -> user: 1773235, supportsStartTLS: 0
2015-03-26 12:35:23.340 Snippets[18083:690585] Did login
2015-03-26 12:35:23.341 Snippets[18083:690657] -[QBChat xmppStream:didSendIQ:] -> IQ SNT: <iq type="get" id="561006823"><query xmlns="jabber:iq:roster"></query></iq>
2015-03-26 12:35:23.342 Snippets[18083:690657] -[QBChat xmppStream:didSendPresence:] -> Presence SNT: <pre
@soulfly
soulfly / seemee17mar_update
Created March 17, 2015 15:45
seemee17mar_update
1) ChatManager.m
-(void)chatDidNotSendMessage:(QBChatMessage *)message error:(NSError *)error {
[self lastMessageFailedWithMessage:message error:error];
}
-(void)lastMessageFailedWithMessage:(QBChatMessage*)message error:(NSError *)error {
[self.delegate lastMessageSendingFailedWithMessage:message error:error];
}
@soulfly
soulfly / 4
Created February 3, 2015 12:34
4
-(void)completedWithResult:(Result *)result context:(void *)contextInfo
{
NSMutableDictionary *dict = (__bridge NSMutableDictionary *)contextInfo;
ChatMessage *message = dict[@"message"];
QBUUser *user = [[DataManager shared] currentUser];
self.isProcessing = NO;
@soulfly
soulfly / gist:f9a124375fa9f33fff25
Created January 19, 2015 08:24
Q-municate Web issue
FB init Object
370094db.build.js:8 User d
370094db.build.js:15 App init s
370094db.build.js:9 FB status response Object
370094db.build.js:6 setting headers on request to https://api.quickblox.com/session.json
370094db.build.js:15 QB SDK: Session is created Object
370094db.build.js:5 [QBChat]: Status.CONNECTING
370094db.build.js:5 [QBChat]: Chat Protocol - BOSH
370094db.build.js:6 [QBChat RECV]: <stream:features xmlns=​"jabber:​client">​…​</stream:features>​
370094db.build.js:6 [QBChat SENT]: <auth xmlns=​"urn:​ietf:​params:​xml:​ns:​xmpp-sasl" mechanism=​"PLAIN">​…​</auth>​
ReplicaSetStatus{name=null, cluster=ClusterDescription{type=ReplicaSet, connectionMode=Multiple,
all=[ServerDescription{address=qb-mongo01-prod:27017, type=Unknown, hosts=[], passives=[], arbiters=[], primary='null', maxDocumentSize=16777216, maxMessageSize=33554432, maxWriteBatchSize=512, tags={}, setName='null', setVersion='null', averagePingTimeNanos=0, ok=false, state=Connecting, version=ServerVersion{versionList=[0, 0, 0]}, minWireVersion=0, maxWireVersion=0},
ServerDescription{address=qb-mongo02-prod:27017, type=Unknown, hosts=[], passives=[], arbiters=[], primary='null', maxDocumentSize=16777216, maxMessageSize=33554432, maxWriteBatchSize=512, tags={}, setName='null', setVersion='null', averagePingTimeNanos=0, ok=false, state=Connecting, version=ServerVersion{versionList=[0, 0, 0]}, minWireVersion=0, maxWireVersion=0}]}}