aslanyanhaik / Quick-Chat

Real time chat app written in Swift 5 using Firebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

I never can't find other users when i test this code

sadothcoder opened this issue · comments

There are registered 2 test users in Firebase DB. but i can't see any users. I am testing this code on Xcode 10.1 (Swift 4.2)

Here are error logs when i am on ConversationsViewController

2019-06-05 20:56:51.177429-0600 QuickChat[90835:2103285] - [I-ACS036002] Analytics screen reporting is enabled. Call +[FIRAnalytics setScreenName:setScreenClass:] to set the screen name or override the default screen class name. To disable screen reporting, set the flag FirebaseScreenReportingEnabled to NO (boolean) in the Info.plist
2019-06-05 20:56:51.392521-0600 QuickChat[90835:2103297] 6.0.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60000000 started
2019-06-05 20:56:51.392833-0600 QuickChat[90835:2103297] 6.0.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
2019-06-05 20:58:06.763021-0600 QuickChat[90835:2103307] [BoringSSL] nw_protocol_boringssl_input_finished(1543) [C1.1:2][0x7fda16c00a00] Peer disconnected during the middle of a handshake. Sending errSSLClosedNoNotify(-9816) alert
2019-06-05 20:58:06.868455-0600 QuickChat[90835:2103310] Task <857B0195-373C-441C-BEA3-51CD2D233F36>.<1> finished with error - code: -1001
2019-06-05 20:58:06.873910-0600 QuickChat[90835:2103235] Task <857B0195-373C-441C-BEA3-51CD2D233F36>.<1> load failed with error Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2103, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask <857B0195-373C-441C-BEA3-51CD2D233F36>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalUploadTask <857B0195-373C-441C-BEA3-51CD2D233F36>.<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSErrorFailingURLKey=https://play.googleapis.com/log, _kCFStreamErrorDomainKey=4} [-1001]
2019-06-05 20:58:06.874227-0600 QuickChat[90835:2103235] <Google/Utilities/Network/ERROR> Encounter network error. Code, error: -1001, Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2103, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask <857B0195-373C-441C-BEA3-51CD2D233F36>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalUploadTask <857B0195-373C-441C-BEA3-51CD2D233F36>.<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSErrorFailingURLKey=https://play.googleapis.com/log, _kCFStreamErrorDomainKey=4}
2019-06-05 20:58:06.877125-0600 QuickChat[90835:2103297] 6.0.0 - [GULNetwork][I-NET901017] <Google/Utilities/Network/ERROR> Encounter network error. Code, error: -1001, Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2103, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask <857B0195-373C-441C-BEA3-51CD2D233F36>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalUploadTask <857B0195-373C-441C-BEA3-51CD2D233F36>.<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSErrorFailingURLKey=https://play.googleapis.com/log, _kCFStreamErrorDomainKey=4}
2019-06-05 20:58:06.882394-0600 QuickChat[90835:2103297] 6.0.0 - [Firebase/Core][I-COR000020] Error posting to Clearcut: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo={_kCFStreamErrorCodeKey=-2103, _NSURLErrorFailingURLSessionTaskErrorKey=LocalUploadTask <857B0195-373C-441C-BEA3-51CD2D233F36>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalUploadTask <857B0195-373C-441C-BEA3-51CD2D233F36>.<1>"
), NSLocalizedDescription=The request timed out., NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSErrorFailingURLKey=https://play.googleapis.com/log, _kCFStreamErrorDomainKey=4}, with Status Code: 0
2019-06-05 20:58:06.889842-0600 QuickChat[90835:2103307] Task <857B0195-373C-441C-BEA3-51CD2D233F36>.<1> HTTP load failed (error code: -999 [1:89])
2019-06-05 20:58:15.125038-0600 QuickChat[90835:2103310] 6.0.0 - [Firebase/Firestore][I-FST000001] Could not reach Cloud Firestore backend. Connection failed 1 times. Most recent error: The Cloud Firestore API is not available for Cloud Datastore projects.
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
2019-06-05 21:02:12.775610-0600 QuickChat[90835:2105567] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x7fda190019e0] get output frames failed, state 8196
2019-06-05 21:02:12.775736-0600 QuickChat[90835:2105567] [BoringSSL] nw_protocol_boringssl_get_output_frames(1301) [C2.1:2][0x7fda190019e0] get output frames failed, state 8196
2019-06-05 21:02:12.776104-0600 QuickChat[90835:2105567] TIC Read Status [2:0x0]: 1:57
2019-06-05 21:02:12.776168-0600 QuickChat[90835:2105567] TIC Read Status [2:0x0]: 1:57

Any help?

@iCoder333 seems like you didn't update the GoogleService-Info.plist file. Without that it will connect to firebase