Push notification MacOS "discarded as device was offline"

Hi everyone,

I am having issues with all my MacOS devices (3 so far) and push notifications. My app is in development and when i send a Test APN (From the Push Notification Console) to any of my MacOS devices (using the device token), the log is "discarded as device was offline".

Fun fact, if i run the command : sudo kill apsd

I receive the previously "discarded" Push notification immediately.

Is it a known bug or something is wrong in my configuration ?

Note : my debugProfile.entitlements is fine and the value is set to "development", i have already reloaded my certificate by cleaning the project and rebuilding (according to ChatGPT) but nothing works...

I am using Xcode 26.0.1 and MacOS 26.0.1 on my 3 different MacOS devices all having this issue.

Thanks in advance, Tom

While there is a somewhat known issue with apsd not being able to sustain a persistent connection to APNs under certain network conditions/configurations, there is also the requirement that the devices receiving the notifications needs a persistent, non-proxied connection to APNs.

Outside of the "no proxy" requirement, the root cause is not known, and if you can file a new bug report on this, more data would be helpful.

In the meantime, you can try a different network connection, turn off any VPNs on your device, and if you have an option to not be behind a proxy things might work better.

But please file a Bug Report on this

In your bug report we would need some diagnostics logs as well. Please go to https://developer.apple.com/bug-reporting/profiles-and-logs/ and follow the instructions for Notifications for iOS to install a logging profile on your device.

Then reproduce the issue (both before and after killing apsd), and follow the instructions at the above link to create a sysdiagnose.

Attach it along with as much detail as you can provide about your network configuration, and please note the times when you did.

If you share the Feedback ID here, I will make sure it gets routed correctly.

Hi there,

Thanks for the quick reply. I will make the bug report as requested.

However, i can assure you i have no proxy or VPN active, i have tested it on 4 different networks (2 with 4G / 5G) and 2 normal wifi.

Since the link you mention is for "Notifications for iOS", is it fine to follow it for MacOS push notifications ?

The bug is only on MacOS devices, not iOS (it works fine there).

Thanks for your help, i will share the Feedback ID here after your confirmation and the bug report creation.

Push notification MacOS "discarded as device was offline"
 
 
Q