Post

Replies

Boosts

Views

Activity

Reply to api.sandbox.push.apple.com:443 & api.push.apple.com:443 Push notification not receiving
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();
Mar ’21
Reply to Calling ShouldEndEditing delegate Call back when click on UISearchBar control in UIPopovercontroller
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.
Dec ’19