Coder Social home page Coder Social logo

Comments (7)

cuongmanhvo162 avatar cuongmanhvo162 commented on June 3, 2024 1

Hello there,
My config file was merely simple and did not have any special customized. I using product flavor to specific the config for staging and prod build

productFlavors {
production {
applicationId 'susu'
buildConfigField('String', 'HOST', '"https://blahblah.com/api/v2/"')
buildConfigField('String', 'WEB_SOCKET', '"wss://chat/cable"')
targetSdkVersion 22
buildConfigField("boolean", "CHECK_APP_VERSION", "true")
}
staging {
applicationId 'susu'
buildConfigField('String', 'HOST', '"https://www.staging.blahblah.com/api/v2/"')
buildConfigField('String', 'WEB_SOCKET', '"wss://staging.chat/cable"')
targetSdkVersion 22
buildConfigField("boolean", "CHECK_APP_VERSION", "false")
}
}

Make sure the uri is correct. Since the debuggable mode is only using to allow you to debug a release APK, I do not think it is the root cause.

Also, please check with the backend team, maybe the problem come from the prod server.

from actioncable-client-java.

cuongmanhvo162 avatar cuongmanhvo162 commented on June 3, 2024 1

Ah I see. the ProGuard just rip off actioncable library.

Thanks for your update.

from actioncable-client-java.

cuongmanhvo162 avatar cuongmanhvo162 commented on June 3, 2024

I was release an app using this library and got no issue. Could you please specific your issues in detail?

from actioncable-client-java.

travinhloc avatar travinhloc commented on June 3, 2024

I has been changed release with 'debuggable true', it's okey but 'debuggable false' the call back Subscription did not return

from actioncable-client-java.

travinhloc avatar travinhloc commented on June 3, 2024

@cuongmanhvo162 would you have better idea for config build.gradle relase? Thankyou so much your reply.

from actioncable-client-java.

travinhloc avatar travinhloc commented on June 3, 2024

@cuongmanhvo162 I fixed.
adding more proguad-rule.pro

-keep class com.hosopy.actioncable.** { *; }
Thanks a lot your support 🥇

from actioncable-client-java.

ViTVetal avatar ViTVetal commented on June 3, 2024

@cuongmanhvo162 a little off topic

Look like you use SSL (wss://chat/cable) in your project. Did you add some extra options? (like sslContext or hostnameVerifier) Did you try to use self-signed SSL certificate?

With self-signed certificate I get in onFailed() javax.net.ssl.SSLHandshakeException: Handshake failed

from actioncable-client-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.