I’ve created chat as described at tutorial: SimpleSample-chat users-ios
All works fine except this: When app goes to background I disconnect it, when it returns to foreground – connect:
- (void)applicationDidEnterBackground:(UIApplication *)application {
[[QBChat instance] disconnect];
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
[[QBChat instance] connectWithUser:user];
}
However when I try to join dialog(which I successfully used earlier) onJoin and onJoinFailed blocks have never called and my messages are not sent. So now I have to get this dialog all the time I return from background. My messages are sent, but I have quite long delay before I can send messages: QBRequest dialogsForPage is quite slow. Can you help me with this issue? Thanks.
Resolved with latest SDK(v2.4.6 — Oct 23, 2015)