Closed apouche closed 1 year ago
Are you able to confirm you have completed the steps at https://docs.proxyman.io/debug-devices/android-device?
Yes I can confirm I did, the proxy is working and I do see the traffic between app & server. Just not over websockets.
I have not been able to configure apps to work with Proxyman - however I have verified that the proxy settings are respected and work by using a different proxy application. When using Charles Proxy the app works as expected, connecting to the Channels service without error and the traffic shows in the Charles UI proxy logs as expected. This indicates the issue is with Proxyman and not with our library.
What is the issue?
The issue I'm about to describe is probably related to #99 but given that the issue is still open and slightly different than what I'm seeing I preferred to open a new one.
I'm trying to use Proxyman (macOS) to intercept pusher traffic. However this just simply doesn't work on the Android emulator. I've tried many different configuration options (with or without TLS), with
DIRECT
(NO_PROXY
),HTTP
andSOCKS
and it always fails with different errors.Here are my findings:
DIRECT
With a
DIRECT
(NO_PROXY
) proxy the connection never establishes (connection state goes from DISCONNECTED to CONNECTING) and eventually fails with:HTTP
With
HTTP
Proxy if I enable TLS I see the same thing it looks like proxy settings are simply bypassed when using TLS. If I disable TLS I getThis seems like an issue with old version of Java. However I tried upgrading the Android JDK to 11 or even 17 but it's still the same issue.
SOCKS
With
SOCKS
and TLS enabled I still get the same error:and If disable TLS I just never get any error but the connection never establishes either.
Here's how the proxy is setup:
What baffles me though is that (if and only if) I disable TLS. I do see the websocket traffic on Proxyman but the connection doesn't establishes on the client SDK. (stays on
CONNECTING
state)Any help would be greatly appreciated.
CC @pusher/mobile