Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add google apns proxy support #790

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

rafarinsk
Copy link

  • Proxy support in GCM - (Code from @vsanchez28)
  • Proxy support in APNS - (Base code from @FlyMontag)
  • Code changed in APNS to remove CONNECT through webrequest and socket hijack via Reflection.

jvsanchez28 and others added 11 commits December 14, 2016 18:19
Adds properties and methods to use an HTTP-proxy in your connection, either with default network credentials or specified credentials.
A method to tunnel the TCP-connection via a pre-configured HTTP-Proxy has been added. If Configuration.UseProxy is set to true, a CONNECT-request is sent using the proxy adress specified. The socket is then extracted from the stream of this request's response (using the System.Reflection-Library) and used to create a TcpClient-object. All traffic sent through this TcpClient-object will pass through the proxy used to send the initial CONNECT-Request.

NOTE:
The method 'getClientViaHTTPProxy' uses code that was not written by the author of this commit. The original code can be found here:
https://web.archive.org/web/20160317134733/https://nitormobiledevelopment.wordpress.com/2013/08/13/push-sharp-using-proxy/
@ti24horas
Copy link

This would be nice @Redth , please take a look. It's an optimized version from @FlyMontag and @jvsanchez28

@rafarinsk
Copy link
Author

  • Proxy support in ApnsFeedbackService.
  • New class ProxyHelper to avoid code duplication.
  • Changes in ApnsFeedbackService to support usage without using the event FeedbackReceived. This way can be more efficient, thread friendly and less error prone.

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

Successfully merging this pull request may close these issues.

None yet

4 participants