I am using the
Quickblox iOS SDK 2.0.12
Quickblox User Session
Quickblox Admin Panel
[[QBSession currentSession] currentUser]
Terminating app due to uncaught exception 'BaseServiceException', reason: 'You have missed the authorization call.
Please insert following code inside your application
Before any other code, that uses our service, but after setup credentials. Thank you.'
As I know, only if you use this method
- (void)startSessionForUser:(QBUUser *)user withDetails:(QBASession *)session expirationDate:(NSDate *)sessionDate , you can use this property correct. But I didn't ever use it.
For recreating a session I use
[QBConnection setAutoCreateSessionEnabled:YES] and for chat I keep QBUUser in my Manager, and after entering foreground I check XMPP connection
[[QBChat instance] isLoggedIn]. Maybee it may help you.