sudo log config --mode "level:debug" --subsystem com.apple.push_registrar
That command sets the log level for the com.apple.push_registrar subsystem to “debug,” which will provide detailed information about the APNs registration process.
Restart the device: To ensure the changes take effect, restart the device.
Collect logs: After the device restarts, open the Terminal app again and run the following command to collect logs related to APNs:
log show --predicate 'subsystem == "com.apple.push_registrar"' --info --debug --last 1h > apns_logs.txt
log collect --predicate '
log collect --predicate "process == 'apsd' || category == 'com.apple.apsd'" --start "1h ago"