mesibo / messenger-app-ios

Open Source Messenger App For iOS - Real-time Messaging, Voice and Video Calls
https://mesibo.com
106 stars 32 forks source link

Mesibo integration issues with IOS #13

Open ajinkya92 opened 4 years ago

ajinkya92 commented 4 years ago

Hello, I have written the following code in order to connect to Mesibo server initially. I am receiving connection status as 4 & 5 in my debug console & unable to see the user online. What is the exact issue as I have implemented the setup as per documentation

Code Written guard let mesibo = Mesibo.getInstance() else {return} let path = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).last mesibo.addListener(self) mesibo.setPath(path?.absoluteString) mesibo.setAccessToken(Constant.mesibo_token) mesibo.setSecureConnection(true) mesibo.start()

Logs in Console E(2301-134716-476)(68938624): Mesibo init - 0, 3 E(2301-134716-478)(68938624): cpu: 4 1 2 2020-01-23 13:47:16.493576+0530 ETERNAL TIE[12157:1616594] [NetworkInfo] Signal strength query returned error: Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied", descriptor: <CTServiceDescriptor 0x281c8fa40, domain=1, instance=1> 2020-01-23 13:47:16.496450+0530 ETERNAL TIE[12157:1616928] Connection Status: 6 2020-01-23 13:47:16.498197+0530 ETERNAL TIE[12157:1616817] Connectivity: 0 2020-01-23 13:47:16.498258+0530 ETERNAL TIE[12157:1616817] Connectivity updated : 0 6 E(2301-134716-792)(1848569856): boringssl init done E(2301-134716-795)(1848569856): BUG openssl session management not implemented

RaviRanjan-11 commented 4 years ago

For your reference. ::

Go to mesibo dashboard create an App click on app go to user create an user (2 user so that you can test)

 fileprivate func setupMesibo(){

     /*
      user  Detail

      email : youremailid@xyx.com
      Auth Token : youruserToken

      */
             mesiboInstance?.setAccessToken("yourAccessToken")

     Mesibo.getInstance()?.addListener(self)
     Mesibo.getInstance()?.start()
 }
ajinkya92 commented 4 years ago

Thank you, Veer. Can you please guide me on how I can share photos and files using this Mesibo. I am getting an error saying the wrong instance was sent to the Message View controller.

Ajinkya Sonar iOS Developer & Research Professional 9167921922 sonar.ajinkya@gmail.com

On Tue, Apr 7, 2020 at 2:23 PM Veer Chauhan notifications@github.com wrote:

For your reference. ::

Go to mesibo dashboard create an App click on app go to user create an user (2 user so that you can test)

fileprivate func setupMesibo(){

 /*
  user  Detail

  email : youremailid@xyx.com
  Auth Token : youruserToken

  */
         mesiboInstance?.setAccessToken("yourAccessToken")

 Mesibo.getInstance()?.addListener(self)
 Mesibo.getInstance()?.start()

}

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mesibo/messenger-app-ios/issues/13#issuecomment-610263422, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHDQQTJAI5CTGWQ4L57RWK3RLLSXDANCNFSM4KKWN76Q .