known issue where the command to validate connectivity to courier.push.apple.com using nc fails to resolve the dns lookup
alternate solution looking to be added in updated version
current workaround is
run /System/Library/PrivateFrameworks/ApplePushService.framework/apsctl status | /usr/bin/grep "connected to server hostname:" from a working macOS device in terminal
from the output copy the responsive courier.apple.com host eg 22-courier.push.apple.com
in the script method is to change courier.push.apple.com in the url array to be the host from the previous command
known issue where the command to validate connectivity to courier.push.apple.com using nc fails to resolve the dns lookup
alternate solution looking to be added in updated version
current workaround is
run
/System/Library/PrivateFrameworks/ApplePushService.framework/apsctl status | /usr/bin/grep "connected to server hostname:"
from a working macOS device in terminal from the output copy the responsive courier.apple.com host eg22-courier.push.apple.com
in the script method is to change courier.push.apple.com in the url array to be the host from the previous command