i want to use APNS from Apple with a c# service. The service runs perfect. What i wanna have is the feedback from Apple if have send the pans to apple. So what i need is the feedback from a sslstream.
Can anybody help me and tell me how i gat a feedback from the server within the sslstream ?
Thanks in advance
Here is my code how i send sthe pans to the apple server :
TcpClient client = new TcpClient(hostname, APNS_PORT);
SslStream sslStream = new SslStream(
client.GetStream(),
false,
new RemoteCertificateValidationCallback(ValidateServerCertificate),
null
);
sslStream.AuthenticateAsClient(hostname, certificatesCollection, SslProtocols.Tls, true);
sslStream.Write(array);
sslStream.Flush();