Comments (7)
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.
Ah I see. the ProGuard just rip off actioncable library.
Thanks for your update.
from actioncable-client-java.
I was release an app using this library and got no issue. Could you please specific your issues in detail?
from actioncable-client-java.
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.
@cuongmanhvo162 would you have better idea for config build.gradle relase? Thankyou so much your reply.
from actioncable-client-java.
@cuongmanhvo162 I fixed.
adding more proguad-rule.pro
-keep class com.hosopy.actioncable.** { *; }
Thanks a lot your support 🥇
from actioncable-client-java.
@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)
- Upgrade of okhttp-ws from 2.5.0 to 2.7.5
- Upgrade of okhttp-ws from 2.X to 3.X HOT 2
- problem when trying to make a toast HOT 3
- Build #39 was broken. HOT 3
- java.lang.NoClassDefFoundError: com.hosopy.actioncable.Connection$4 HOT 3
- How can i set client origin. HOT 4
- Remove action property from command data HOT 2
- Readme change request: Origin header HOT 1
- problem when sending data HOT 1
- W/System.err: com.hosopy.actioncable.ActionCableException: java.io.EOFException HOT 2
- Connection to action cable is failed every time. Guide me where i am wrong HOT 1
- Crash on Android HOT 2
- New Maintainer HOT 4
- consumer.disconnect() is not unsubscribing the subscriptions HOT 5
- How to use in the background? HOT 2
- Why support for IOS? HOT 2
- It will create multiple connection with server when switch wifi
- Fix proguard rule in readme, please HOT 3
- Failed to resolved "this dependency" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actioncable-client-java.