Does anyone have any updates on this?
This is currently a blocker for sending push not with a new hostname and port i.e api.push.apple.com:443.
Please find the above trail chain of replies to get a code-level idea.
Thanks Team!
Post
Replies
Boosts
Views
Activity
We have a class library with the .Net framework (v4.5) and below is the source code to request the apns
X509Certificate2 clientCertificate = new X509Certificate2(System.IO.File.ReadAllBytes(certificatePath), "***");
X509Certificate2Collection certificatesCollection = new X509Certificate2Collection(clientCertificate);
String payload = string.Empty;
SslStream sslStream = new SslStream(client.GetStream(), false, new RemoteCertificateValidationCallback(ValidateServerCertificate), null);
Dictionarystring, string SOSdata = new Dictionarystring, string();
sslStream.AuthenticateAsClient(hostname, certificatesCollection, SslProtocols.Tls12, false);
MemoryStream memoryStream = new MemoryStream();
payload = "{"aps":{"alert":"Testing.. (0)","badge":1,"sound":"default"}}";
byte[] payload1 = GeneratePayload(deviceID, payload, memoryStream);
sslStream.Write(payload1);
//ReadMessageAsync(sslStream, payload, payload1, deviceID);
sslStream.Flush();
client.Close();
Just Added the Table View to represent the list from a response array and put it into UIPopOverController then on Action of UISeachBar control it shows as UiPopovercotroller to represent a view in iPad. So, when I click on the search bar then it calls the SholudBeginEditing after that it calls directly ShouldEndEditing Delegate callback of UISearchBAr control. Thanks for your valuable Response.