There was a temporary issue a little while back where the devices were unable to connect to APNs for registering in the development environments. This has since been fixed.
If you are experiencing this issue after September 2020, this could be a temporary network glitch, or due to the configuration of your network environment.
If you are getting stuck in the state where this isn’t working, you can try a couple things to kick start the connection again.
Turn off WiFi and/or disconnect the network cable
After a few seconds, reconnect. This will cause the device to try to reestablish its persistent connection to APNs.
Run your app again to request a new token
To resolve more persistent issues, I suggest making sure that your end of the network is properly configured to allow devices access APNs.
If your computer is behind a firewall, or using Private Access Point for cellular data, make sure you can connect to specific ports.
You need a direct, *
unproxied* connection to the APNs servers on these ports:
TCP port 5223 to communicate with APNs.
TCP port 443 or 2197 to send notifications to APNs.
TCP port 443 is required during device activation, and afterwards for fallback (on Wi-Fi only) if devices can't reach APNs on port 5223.
The APNs servers use load balancing, so your devices don't always connect to the same public IP address for notifications. It's best to let your device access these ports on the entire 17.0.0.0/8 address block, which is assigned to Apple.
If you are still unable to register for a token after making sure your network setup is as recommended, please do file a bug report at
https://developer.apple.com/bug-reporting/ about not getting any callbacks, so the APNs team can judge the impact this issue is having and help them prioritize a solution.