Hi
I can successfully use the Pushy by using native openSSL and Proxy Server
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-tcnative-boringssl-static</artifactId>
<version>1.1.33.Fork16</version>
</dependency>
apnsClient.setProxyHandlerFactory(
new Socks5ProxyHandlerFactory(
new InetSocketAddress("my.proxy.com", 1080)));
It works fine in my proxy server and my device receives push notifications. But when I apply this (exactly the same code, only changing the proxy settings) to another very restricted environment, where the proxy server only allow pre-defined domains to get through, the push is not successful. I have added
api.push.apple.com and
api.development.push.apple.com to the allowed domains already.
Our observations are:
1. When it get through my proxy server, the log shows IP, not domain. But the IP is correct, which is one of the resolved IP of
api.push.apple.com
you see android is using domain to connect (through proxy) but iOS does not.
2. The system administrator from that 'restricted environment's how me the log for the failed case :
time: 2016-05-24 10:58:05 UTC
....
user: unauthenticated
So Is it possible to use proxy through a domain instead of IP. That 'restricted environment' is very very very strict and cannot allow looser measures.
Or any other suggestion is welcome.
Thanks
Stephen