AndrewBarba / apns2

Node client for connecting to Apple's Push Notification Service using the new HTTP/2 protocol with JSON web tokens

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Proxy Mode

FredyBellidoTenorio opened this issue · comments

commented

Hi Andrew,

The current implementation does not allow usage of a proxy. This would be a great feature for those having to use apns2 behind firewalls. Are there any other suggestions on how use it in such an environment where internet access is restricted?

Thanks for you help!
Kind regards.

Hey thanks for bringing this up. I can expose the relevant options as described here: http://stackoverflow.com/questions/3862813/how-can-i-use-an-http-proxy-with-node-js-http-client/6781592#6781592

commented

Hi Andrew,
I would like to know if your apns2 module can be used with a proxy, as the machine Where is going to be located doesn't have internet direct connection, the internet output would be made through a proxy.

Okay can you look at my previous comment? Have you gotten the regular http api to work with your use case? If so then I can expose those options and get this to work as well

Haven't heard back in a while, closing for now