Support Topics Documentation Slack YouTube Blog

Real time retrieval api is crashing

I added the real time object retrieval api in my app and it seems to crash anytime it’s get to that point.

Hello @Yomade_Stephens ,

We’ll investigate this issue and answer you as soon as possible.
Regards, Inna

Hi @Yomade_Stephens

please provide with us the error what you receive.

Regards, Vlad

Saw this
Failed resolution of: Lio/socket/client/Io$Options;

Caused by: Java. Lang. ClassNotFoundException: Didn’t find class “io.socket.client.IO$Options” on path : DexPathList.

This is kind Of The main error highlighted

Did you add socket.io dependency to your project?
https://mvnrepository.com/artifact/io.socket/engine.io-server-pom/1.0.0

After adding the dependency is there another thing needed for it to work.

Are you getting another error?

Still the same error

Hi @Yomade_Stephens

The Real-Time Database functionality introduces a new library dependency - socket.io. Make sure to read the Client-side Setup section for more information.

Especially pay attention to " Gradle Setup" chapter:
https://backendless.com/docs/android/setup.html#gradle-setup

And make sure you add socket.io dependency to your app/build.gradle file:

dependencies {
implementation group: ‘com.backendless’, name: ‘backendless’, version: ‘5.0.+’

// required for real-time database and real-time messaging  
implementation ('io.socket:socket.io-client:1.0.0') {  
  // excluding org.json which is provided by Android  
  exclude group: 'org.json', module: 'json'  
}  

}

Best Regards,
Maksym

tanx so much @Maksym_Khobotin now it working fine. tanx guys you all r a life saver