api.sandbox.push.apple.com:443 & api.push.apple.com:443 Push notification not receiving

We have configured the push notification service (Server-provider) to communicate with APNS with hostname: api.sandbox.push.apple.com and Port: 443. APNS request is going successfully but from APNS to device (iPhone 6S ) not coming.
We have whitelisted the above port and other ports also(2195, 2197). but. still not able to receive the notification.

We have also cross verified with the old gateway.sandbox.push.apple.com:2195 and it's working fine but with new api.sandbox.push.apple.com:443, not working.

Could someone from Apple Community help us to get resolved this issue?
Thanks in advance!!
It can be many things. Incorrect device token, mismatched apns-topic, or even a malformed HTTP/2 request in general.
Are you not getting any errors when you send the POST request?

Some more information on what exactly you are sending (including headers and payload) and any logging you have wrt responses from APNs would be helpful.
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);
Dictionary<string, string> SOSdata = new Dictionary<string, 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();
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!
Same problem here.

ssl://gateway.push.apple.com:2195 - > OK from APN and message is delivered to the device.
ssl://api.push.apple.com:443 or ssl://api.push.apple.com:2197 OK from APN but message is NOT delivered to the device.


Should something also be changed on the App side?
Should the App register to the new servers as well?

I use https://api.sandbox.push.apple.com:443/3/device/ and https://api.push.apple.com:443/3/device/

I am getting following error while sending push notification using pushy library --

Caused by: io.netty.channel.AbstractChannel$AnnotatedSocketException: Network is unreachable: api.sandbox.push.apple.com/2620:149:208:305:0:0:0:1f:443

Caused by: java.net.SocketException: Network is unreachable

at sun.nio.ch.Net.connect0(Native Method)

at sun.nio.ch.Net.connect(Net.java:454)

at sun.nio.ch.Net.connect(Net.java:446)

at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)

at io.netty.util.internal.SocketUtils$3.run(SocketUtils.java:83)

at io.netty.util.internal.SocketUtils$3.run(SocketUtils.java:80)

at java.security.AccessController.doPrivileged(Native Method)

at io.netty.util.internal.SocketUtils.connect(SocketUtils.java:80)

at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:315)

at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:248)

at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1354)

at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:547)I am getting following error while sending push notification using pushy library --

Caused by: io.netty.channel.AbstractChannel$AnnotatedSocketException: Network is unreachable: api.sandbox.push.apple.com/2620:149:208:305:0:0:0:1f:443

Caused by: java.net.SocketException: Network is unreachable

at sun.nio.ch.Net.connect0(Native Method)

at sun.nio.ch.Net.connect(Net.java:454)

at sun.nio.ch.Net.connect(Net.java:446)

at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648)

at io.netty.util.internal.SocketUtils$3.run(SocketUtils.java:83)

at io.netty.util.internal.SocketUtils$3.run(SocketUtils.java:80)

at java.security.AccessController.doPrivileged(Native Method)

at io.netty.util.internal.SocketUtils.connect(SocketUtils.java:80)

at io.netty.channel.socket.nio.NioSocketChannel.doConnect(NioSocketChannel.java:315)

at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.connect(AbstractNioChannel.java:248)

at io.netty.channel.DefaultChannelPipeline$HeadContext.connect(DefaultChannelPipeline.java:1354)

at io.netty.channel.AbstractChannelHandlerContext.invokeConnect(AbstractChannelHandlerContext.java:547)

Multiline BlockQuote

api.sandbox.push.apple.com:443 &amp; api.push.apple.com:443 Push notification not receiving
 
 
Q