APN's not delivering to macOS devices

Hello,

I am building a swift macOS app and have noticed issues today with delivering APN's to both development and production devices. Similar to this thread the only way I can get them to deliver temporarily is to do one of:

  • Change the bundle ID of my app to a new bundle ID, then start it up. I will usually get the first notification.
  • Reset my network (either wired ethernet or wifi, typically both)

Using the push notifications console for development sends, I see the message "discarded as device was offline" in the delivery log even though the device is still online and was just registered when I got back the deviceToken.

If I set an expiration on development notifications then the delivery log says "stored for device power considerations" and the notification will then send once I do one of the above steps (new bundle or reset network).

Previous to today the notifications were sending immediately and I had no issues getting them. Is there something I can do to fix this problem, is it a problem with the APN provider, or is it something else I haven't thought of?

A unique ID for an expiration-based notification is 1755def8-1a44-cbcf-c64b-64e435c30f81, and a non-expiry is d7a72b46-0c64-4500-0abc-3734f9efbd90.

As a quick follow up, the exact same code is currently delivering notifications without any issue. The only difference is I am currently on my laptop with only a wifi connection whereas earlier when I posted this issue I was on dual connections (via thunderbolt -> monitor ethernet hub) with the ethernet adapter prioritized above wifi. I'm wondering if a part of this could be the multiple connections?

Thanks for the update. Yes, it is possible that the multiple connections could play a part.

We have seen a similar issue before with certain network configurations, and we believe the cause is the system thinking it is not able to contact APNs servers.

Does the problem go away if you change the prioritization of multiple connections?


Argun Tekant /  DTS Engineer / Core Technologies

APN's not delivering to macOS devices
 
 
Q