quickblox / q-municate-ios Goto Github PK
View Code? Open in Web Editor NEWQ-municate iOS repository
Home Page: http://q-municate.com
License: MIT License
Q-municate iOS repository
Home Page: http://q-municate.com
License: MIT License
There is a 500 server error:
2017-02-28 17:38:02.771521 Q-municate[49057:12368391] [QBCore] Response error: Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: internal server error (500)" UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x170429d00> { URL: https://qbprod.s3.amazonaws.com/ } { status code: 500, headers {
Connection = close;
"Content-Type" = "application/xml";
Date = "Tue, 28 Feb 2017 20:38:02 GMT";
Server = AmazonS3;
"Transfer-Encoding" = Identity;
"x-amz-id-2" = "OTaefrYWKfRspJgrrrh0G/TcwNEarta4gQmd6HXTV73TOnSFY4Wz3kl7so2dse9S6FqxUn/lpEM=";
"x-amz-request-id" = 934370ED267447E4;
} }, NSErrorFailingURLKey=https://qbprod.s3.amazonaws.com/, com.alamofire.serialization.response.error.data=<3c3f786d 6c207665 7273696f 6e3d2231 2e302220 656e636f 64696e67 3d225554 462d3822 3f3e0a3c 4572726f 723e3c43 6f64653e 496e7465 726e616c 4572726f 723c2f43 6f64653e 3c4d6573 73616765 3e576520 656e636f 756e7465 72656420 616e2069 6e746572 6e616c20 6572726f 722e2050 6c656173 65207472 79206167 61696e2e 3c2f4d65 73736167 653e3c52 65717565 73744964 3e393334 33373045 44323637 34343745 343c2f52 65717565 73744964 3e3c486f 73744964 3e4f5461 65667259 574b6652 73704a67 72727268 30472f54 63774e45 61727461 3467516d 64364858 54563733 544f6e53 46593457 7a336b6c 37736f32 64736539 53364671 78556e2f 6c70454d 3d3c2f48 6f737449 643e3c2f 4572726f 723e>, NSLocalizedDescription=Request failed: internal server error (500)}
2017-02-28 17:38:02.776752 Q-municate[49057:12368391] [QBCore] Response error reasons: (null)
Hi
I got 2 Errors when I Localization Auth.storyboard
IB Designables Group
1- /Scenes/Auth/Base.lproj/Auth.storyboard: error: IB Designables: Failed to render and update auto layout status for QMWelcomeScreenViewController (ncs-B4-uAJ): Failed to load designables from path (null)
2- /Scenes/Auth/Base.lproj/Auth.storyboard: error: IB Designables: Failed to update auto layout status: Failed to load designables from path (null)
Thanks for your support
Regards
Allan
I downloaded the latest iOS app and found out that the Chat dialogs list screen doesn't list any previous chat history after clearing the app from device memory. I would need to go to Contacts screen, and click on individual contact and Send message link to retrieve the existing chat history, then go back to Chats screen and the chat history will then appear.
Logout and relogin doesn't have this issue but after clearing the app from the device memory, this issue occurs. I'm testing with my connected iPhone 7 in Xcode.
Anyone else is facing this issue?
Hello sir, Iam getting error while compiling project. Errors are:
Expected ":" after __TVOS_UNAVAILABEL
Using xcode 7.0
What to do.
Thanks
Steps for issue
download (https://github.com/QuickBlox/q-municate-ios)
create new demo application
add new pod file
copy all pod listed in downloaded project ,
copy in pod file , created in new demo application ,
install pod (using github account)
Run application
here it says that , #import < Quickblox/Quickblox.h > not found in QBChatMessage+QBDateDivider.h file
Hi,
I want to integrate chat and video feature into my app using this demo but while I installed the pod 'QuickBlox', '~> 2.9'
and getting the so many errors in QMMessagesMemoryStorage.m
file.
Build Errors
//Expected type error
- (void)addMessage:(QBChatMessage *)message forDialogID:(NSString *)dialogID;
//Expected )
- (void)addMessages:(NSArray QB_GENERIC(QBChatMessage *) *)messages forDialogID:(NSString *)dialogID;
//Expected )
- (void)replaceMessages:(NSArray QB_GENERIC(QBChatMessage *) *)messages forDialogID:(NSString *)dialogID;
//Expected a type
- (void)updateMessage:(QBChatMessage *)message;
//Expected )
- (NSArray QB_GENERIC(QBChatMessage *) *)messagesWithDialogID:(NSString *)dialogID;
Can you help me to resole this issue?
Thanks
NSParameterAssert([QMCore instance].currentProfile.userData); always crash on this line ...
Hi,
Since there was a major upgrade from Quickblox to version 2.3, is upgrading the code to that version planned?
Thanks
Wouter
The BE has to send a push notification with a field ios_badge where we need to have a number of unread messages. How should we do it on the BE? We need to place that number on top of the IOS app icon.
Hi I have been trying to move the placement of "Chat" Tab to second tab, and the tableview not return anything if it placed on the second.. but If I put it to the first tab, it works normal...
Why is this happening?
2016-02-02 00:24:37.672 Q-municate[4663:1404220] [QBCore] Request URL:https://api.quickblox.com/users/by_full_name.json?full_name=M&page=1&per_page=50
2016-02-02 00:24:37.674 Q-municate[4663:1404220] [QBCore] Request method: GET
2016-02-02 00:24:37.675 Q-municate[4663:1404220] [QBCore] Request parameters:{
"full_name" = M;
page = 1;
"per_page" = 50;
}
2016-02-02 00:24:37.675 Q-municate[4663:1404220] [QBCore] Request headers: {
"Content-Type" = "application/json";
"QB-OS" = "iOS 9.2.1";
"QB-SDK" = "iOS 2.6.1.1";
"QB-Token" = 09f8699c900b665e51fcc302b705f1e4fe3f69c8;
"QuickBlox-REST-API-Version" = "0.1.1";
}
2016-02-02 00:24:38.084 Q-municate[4663:1404436] [QBCore] Response error: Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: forbidden (403)" UserInfo={com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x159243cb0> { URL: https://api.quickblox.com/users/by_full_name.json?full_name=M&page=1&per_page=50 } { status code: 403, headers {
"Access-Control-Allow-Origin" = "*";
"Cache-Control" = "no-cache";
Connection = "keep-alive";
"Content-Length" = 33;
"Content-Type" = "application/json; charset=utf-8";
Date = "Tue, 02 Feb 2016 08:24:38 GMT";
"QB-Token-ExpirationDate" = "2016-02-02 10:14:35 UTC";
"QuickBlox-REST-API-Version" = "0.1.1";
Server = "nginx/1.8.0";
Status = "403 Forbidden";
"X-Rack-Cache" = miss;
"X-Request-Id" = b9617af21d6df7675e76270acb19c36e;
"X-Runtime" = "0.063898";
"X-UA-Compatible" = "IE=Edge,chrome=1";
} }, NSErrorFailingURLKey=https://api.quickblox.com/users/by_full_name.json?full_name=M&page=1&per_page=50, com.alamofire.serialization.response.error.data=<7b226572 726f7273 223a7b22 62617365 223a5b22 466f7262 69646465 6e225d7d 7d>, NSLocalizedDescription=Request failed: forbidden (403)}
ERROR ITMS-90542: "Invalid CFBundleSupportedPlatforms value. The key 'CFBundleSupportedPlatforms' in the Info.plist file in bundle 'Payload/HeartKeeper.app/QMChatCacheModel.bundle' contains an invalid value '[iPhoneSimulator]'. Consider removing the CFBundleSupportedPlatforms key from the Info.plist. If this bundle is part of a third-party framework, consider contacting the developer of the framework for an update to address this issue."
I am using Qmunicate to develop my own app. I am not able to get chats offline from core data. Getting the following error.
error: -executeRequest: encountered exception = I/O error for database at /Users/latika/Library/Developer/CoreSimulator/Devices/49C916CC-FDF0-46EA-BD7B-9D73B3F168C9/data/Containers/Data/Application/7FB3534D-EC37-4BE1-A525-F8FCBA44D62C/Library/Application Support/Q-municate/sample-cache. SQLite error code:6922, 'disk I/O error' with userInfo = {
NSFilePath = "/Users/latika/Library/Developer/CoreSimulator/Devices/49C916CC-FDF0-46EA-BD7B-9D73B3F168C9/data/Containers/Data/Application/7FB3534D-EC37-4BE1-A525-F8FCBA44D62C/Library/Application Support/Q-municate/sample-cache";
NSSQLiteErrorDomain = 6922;
}
I have used "Q-municate" code into my test app , I am able to compile the code. But while running the code my app is crashing at
[QMContactListCache setupDBWithStoreNamed:kQMContactListCacheNameKey applicationGroupIdentifier:[self appGroupIdentifier]];
in QMCore class.
Can you please help me in resolving this issue, also if you can let me know all steps to integrate Q-municate app in to my app directly, and customise it.
Logs for your reference :
2017-05-08 11:28:03.185868 TestChat[1585:38748] [MC] Reading from private effective user settings.
2017-05-08 11:28:20.994 TestChat[1585:38748] Init - QMAuthService service...
2017-05-08 11:28:20.994 TestChat[1585:38748] Init - QMChatService service...
2017-05-08 11:28:20.999 TestChat[1585:38802] [QBCore] Restoring QBSession, status = -25300. See "Security Error Codes" (SecBase.h)
2017-05-08 11:28:21.003 TestChat[1585:38748] Init - QMUsersService service...
2017-05-08 11:28:21.003 TestChat[1585:38748] +[QMContactListCache setupDBWithStoreNamed:applicationGroupIdentifier:]: unrecognized selector sent to class 0x10fb20d90
2017-05-08 11:28:21.007 TestChat[1585:38748] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[QMContactListCache setupDBWithStoreNamed:applicationGroupIdentifier:]: unrecognized selector sent to class 0x10fb20d90'
*** First throw call stack:
(
0 CoreFoundation 0x0000000115fd734b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000115a3f21e objc_exception_throw + 48
2 CoreFoundation 0x0000000116046e74 +[NSObject(NSObject) doesNotRecognizeSelector:] + 132
3 CoreFoundation 0x0000000115f5cc15 forwarding + 1013
4 CoreFoundation 0x0000000115f5c798 _CF_forwarding_prep_0 + 120
5 TestChat 0x000000010f06144e -[QMCore init] + 174
6 TestChat 0x000000010f061362 __18+[QMCore instance]_block_invoke + 50
7 libdispatch.dylib 0x0000000116aa20cd _dispatch_client_callout + 8
8 libdispatch.dylib 0x0000000116a871fc dispatch_once_f + 501
9 TestChat 0x000000010f061308 +[QMCore instance] + 136
10 TestChat 0x000000010eff595c -[QMLogInViewController done:] + 1452
11 UIKit 0x0000000112fcd5b8 -[UIApplication sendAction:to:from:forEvent:] + 83
12 UIKit 0x000000011340e405 -[UIBarButtonItem(UIInternal) _sendAction:withEvent:] + 149
13 UIKit 0x0000000112fcd5b8 -[UIApplication sendAction:to:from:forEvent:] + 83
14 UIKit 0x0000000113152edd -[UIControl sendAction:to:forEvent:] + 67
15 UIKit 0x00000001131531f6 -[UIControl _sendActionsForEvents:withEvent:] + 444
16 UIKit 0x0000000113153380 -[UIControl _sendActionsForEvents:withEvent:] + 838
17 UIKit 0x00000001131520f2 -[UIControl touchesEnded:withEvent:] + 668
18 UIKit 0x000000011303ace1 -[UIWindow _sendTouchesForEvent:] + 2747
19 UIKit 0x000000011303c3cf -[UIWindow sendEvent:] + 4011
20 UIKit 0x0000000112fe963f -[UIApplication sendEvent:] + 371
21 UIKit 0x00000001137db71d __dispatchPreprocessedEventFromEventQueue + 3248
22 UIKit 0x00000001137d43c7 __handleEventQueue + 4879
23 CoreFoundation 0x0000000115f7c311 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
24 CoreFoundation 0x0000000115f6159c __CFRunLoopDoSources0 + 556
25 CoreFoundation 0x0000000115f60a86 __CFRunLoopRun + 918
26 CoreFoundation 0x0000000115f60494 CFRunLoopRunSpecific + 420
27 GraphicsServices 0x00000001181f5a6f GSEventRunModal + 161
28 UIKit 0x0000000112fcb964 UIApplicationMain + 159
29 TestChat 0x000000010eff1e3f main + 111
30 libdyld.dylib 0x0000000116aee68d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Guideline 2.5.4 - Performance - Software Requirements
Your app declares support for audio in the UIBackgroundModes key in your Info.plist but did not include features that require persistent audio.
The audio key is intended for use by apps that provide audible content to the user while in the background, such as music player or streaming audio apps. Please revise your app to provide audible content to the user while the app is in the background or remove the "audio" setting from the UIBackgroundModes key.
Next Steps
The audio key is intended for use by apps that provide audible content to the user while in the background, such as music player or streaming audio apps. Please revise your app to provide audible content to the user while the app is in the background or remove the "audio" setting from the UIBackgroundModes key.
We have just change the first screen where we have use our own two-step verification system using Sinch SDK. And second change is in Contact Screen. We display users to each other depend on phone number saving in their iPhone Contact.
We have faced this reject many time. We first make our own application from scratch we get the same rejection reason and then we decide to use Q-Municate as it is apple approved application but after making above mentioned changes in your app and then submit we face that same previous issue on UIBackgroundModes for audio.
The 'Pods-HeartKeeper' target has transitive dependencies that include static binaries: (/Users/anilkumar/Desktop/ProntoITLabs/Developer/heart-keeper-ios/Pods/QuickBlox/Quickblox.framework)
I don't know what is the problem but I'm not able to build it with XCode 6.3. It's giving me errors on many places.
My OS X Version is: 10.11 (15A282b) El Capitan.
Can You please give me any solution to build it successfully. That would be good practise for my project.
Thanks.
When I close the app and re-open it, my previous chats disappear. If I log out then log in again, they come back. All the time the chats and contacts etc remain visible in QuickBlox.
Any assistance with this much appreciated.
Thanks,
Martyn.
Hi,
I wished to know if there's cocoapod for this project.
Thanks
Hi,
I am using the Q-municate-iOS chat application for may project.
I created the account into QB and I am able to run the project.
When I signed in through two mobile number in same device but I am confuse how to chat. I am not getting other contact into my Contact list of app.
Everything looks like blank.
Please let me know any error
Hi,
I'm evaluating your solution. Q-Communicate would be a possible app to reuse but the problem is that it's using a previous QuickBlox SDK, version 2.6.5. Current SDK version is v2.7. Migrating to v2.7 requires some extra work, not convenient for me. In order to going forward with the decision, could you please help with some answers:
-Till what date will you accept in the server requests from version 2.6.5?
-Any requests/functions implemented in v2.6.5 have become out of service?
Thanks.
ERROR ITMS-90635: "Invalid Mach-O Format. The Mach-O in bundle "HeartKeeper.app/Frameworks/Quickblox.framework" isn’t consistent with the Mach-O in the main bundle. The main bundle Mach-O contains armv7(machine code) and arm64(machine code), while the nested bundle Mach-O contains armv7(bitcode) and arm64(bitcode). Verify that all of the targets for a platform have a consistent value for the ENABLE_BITCODE build setting."
while running this project i am unable to see global contacts though i am running project on device.
I have seen a function in Android SDK
public void procHangUpOpponent(Integer opponentID,
Map<String,String> userInfo)
Close channel with concrete opponent
Parameters:
opponentID -
But there is no any method in ios SDK which can be called to hang up a specific user.
Any help will be appreciated
Currently, messages are displayed from bottom then move to top. So, how can I display messages like Normal CollectionView Layout?
how can i integrate support attachment support for pdf files, audio and video files. Any help or ideas would be great.
Kindly suggest me the steps how to integrate and what classes to be integrated to use QuickBlox Chat and Video feature in my Project.
Is there any way in the Quickblox framework with that I can delete chat after 7 days in particular conversation?
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: [QMCore instance].currentProfile.userData'
Hello,
Below code returns 0 dialogs even though there are two dialogs exist. (Both are public dialog)
func dialogs() -> [QBChatDialog]? { return ServicesManager.instance().chatService.dialogsMemoryStorage.dialogsSortByUpdatedAtWithAscending(false) }
While if use below code, it returns two dialogs
ServicesManager.instance().cachedDialogs { (dialogs) in
}
Not sure, What's going wrong.
I downloaded the ios app and replaced the app credentials as instructed in https://quickblox.com/developers/Q-municate#Q-municate_iOS
The following exception thrown whenever Logout is clicked:
libc++abi.dylib: terminating with uncaught exception of type NSException
And the following line under the function main() in q-municate-ios-master/Q-municate/Supporting Files/main.m gets highlighted:
return UIApplicationMain(argc, argv, nil, NSStringFromClass([QMAppDelegate class]));
Anyone else is facing the similar issue?
p/s I also noticed that the above error happens when we click on Settings -> Profile Image -> Take Image
Guideline 2.5.4 - Performance - Software Requirements
Your app declares support for audio in the UIBackgroundModes key in your Info.plist but did not include features that require persistent audio.
The audio key is intended for use by apps that provide audible content to the user while in the background, such as music player or streaming audio apps. Please revise your app to provide audible content to the user while the app is in the background or remove the "audio" setting from the UIBackgroundModes key.
Next Steps
The audio key is intended for use by apps that provide audible content to the user while in the background, such as music player or streaming audio apps. Please revise your app to provide audible content to the user while the app is in the background or remove the "audio" setting from the UIBackgroundModes key.
We have just change the first screen where we have use our own two-step verification system using Sinch SDK. And second change is in Contact Screen. We display users to each other depend on phone number saving in their iPhone Contact.
We have faced this reject many time. We first make our own application from scratch we get the same rejection reason and then we decide to use Q-Municate as it is apple approved application but after making above mentioned changes in your app and then submit we face that same previous issue on UIBackgroundModes for audio.
Pod file QMCVDevelopment not installing
SSH file created and uploaded in github
When i try ssh -T [email protected]
Hi Kuriakose3! You've successfully authenticated, but GitHub does not provide shell access.
Macintosh:.ssh kuriakosepious$ ssh -T [email protected]
When installing podfile,
Pre-downloading: `QMCVDevelopment` from `git.github.com:QuickBlox/QMChatViewController-ios.git`, branch `development`
[!] Error installing QMCVDevelopment
[!] /usr/local/bin/git clone git.github.com:QuickBlox/QMChatViewController-ios.git /var/folders/1j/dds4dz3d4p1fvw2xbfdj4kh00000gq/T/d20160822-11280-1h0j2lw --template= --single-branch --depth 1 --branch development
Cloning into '/var/folders/1j/dds4dz3d4p1fvw2xbfdj4kh00000gq/T/d20160822-11280-1h0j2lw'...
ssh: connect to host git.github.com port 22: Operation timed out
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
Wanted to try the platform and the app, registered by phone on one iOS device, by FaceBook on another, and by e-mail from web app.
Now absolutely unclear how to add the contacts to each other instance.
When one user logs out, the other users continue to see them in 'online' instead of 'offline'. In the test, only after 20 minutes the correct status appeared.
To reproduce the error:
1)Run app in simulator, login as user A with Facebook
2)Run app in iPhone 5s, login as user B
3)From each app, add user as contact user A or B
4)In app (1), logout user A
5)In app (2) The status for user A should appear as 'offline', instead we can see the 'online' label in several views (Contacts, Contact details, ...)
q-comunicate version: 29/Feb/2016
IOS version (iPhone): 9.2.1
IOS version (sim): 8.4
By using this method: [ServicesManager.instance.chatService.dialogsMemoryStorage dialogsSortByUpdatedAtWithAscending:NO], we expect to get all the dialogs the current user is in, but the returned dialogs list is not accurate in two ways:
Could you please help have a check? Or is there some other way to get the correct dialogs list?
Thank you very much.
====================== Source Code ======================
{
// Retrieving dialogs sorted by updatedAt date from memory storage.
return [ServicesManager.instance.chatService.dialogsMemoryStorage dialogsSortByUpdatedAtWithAscending:NO];
}
====================== Source Code ======================
Hi There,
I am facing chat connection related issues in iOS q-municate (v2.2.1) project. Please find the attached details and logs below and any help/suggestions would be greatly appreciated.
errors.rtfd.zip - removed (Pro100Andrey)
Thanks,
I'm facing NSParameterAssert failure for "dialogID" in "chatDidReadMessageWithID" and "chatDidDeliverMessageWithID" methods in "QMChatService" class.
here is the log
2015-12-01 16:22:44.244 Q-municate[368:36987] [ChatService] Presence SNT:
2015-12-01 16:22:44.245 Q-municate[368:36987] [ChatService] IQ SNT:
2015-12-01 16:22:44.245 Q-municate[368:36987] [ChatService] Presence SNT:
2015-12-01 16:22:44.245 Q-municate[368:36987] [ChatService] IQ SNT:
2015-12-01 16:22:44.525 Q-municate[368:36945] [ChatService] Message RCV: Offline Storage - chat.quickblox.com
2015-12-01 16:22:44.526 Q-municate[368:36853] *** Assertion failure in -[QMChatService chatDidReadMessageWithID:dialogID:readerID:], /Users/praveenliyanaarachchi/Downloads/q-municate-ios-master 2/Pods/QMServices/QMChatService/QMChatService/QMChatService.m:232
2015-12-01 16:22:44.528 Q-municate[368:36853] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: dialogID != nil'
*** First throw call stack:
(0x184060f48 0x198c13f80 0x184060e18 0x184f54a1c 0x100263d38 0x184066a70 0x183f644d4 0x183f68e00 0x10032690c 0x184064a30 0x183f68cac 0x1002eb75c 0x184066a70 0x183f644d4 0x183f68e00 0x100380ac4 0x1011b9ca8 0x1011b9c68 0x1011bf710 0x1840181f8 0x184016060 0x183f44ca0 0x18f180088 0x18965cffc 0x1000c56b4 0x1994628b8)
libc++abi.dylib: terminating with uncaught exception of type NSException
Hi, my app is working well until 07/28/2017
I'm check in "Queue" at Admin page and it's show me:
https://gyazo.com/0f1e37f0d461eb2c54ee4c3966cd9529
My app id is: 49976
Please help me, thanks for your supporting
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.