Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

SC Client with HTTPS Server seems not working only in React Native Android App. #123

Open
beingshashi opened this issue Nov 3, 2018 · 3 comments

Comments

@beingshashi
Copy link

Hi,

We have react native based app. Our server is now HTTPS Enabled. We have also configured the socketcluster-server to work with our SSL Certificates.
By using the secure:true option, it seems to work everywhere including WEB AND REACT NATIVE IOS App, except the android one.

We have tried every possible option including providing the certificate files, in the protocolOptions settings, but still, it does not seems to work.
We have also tried the react-native-pinning-ssl thing, but no success.

Any suggestions on how do we make it running on our react native Android app.

Thanks,

@jondubois
Copy link
Member

If it works on web and React Native, it should work on Android. Is there any difference in your setup for the two platforms? Maybe something is different with bundling or you use different source code/dependencies for each platform?

@beingshashi
Copy link
Author

Yes, that is a correct assumption. As code gonna be same for both Android and iOS, but unfortunately Android is not allowing to have HTTPS communication from in to out. The setup for both is single and same only, but it seems to something Android level issue. Not able to figure it out what.

@DarkMukke
Copy link

What do you mean with from in to out ?

I have not used SC in native yet but, it should just use the ws library, same as https://www.npmjs.com/package/react-native-websocket, I don't know how/why it would be an Android problem unless your device/OS is outdated

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants