ostinelli / apnotic

A Ruby APNs HTTP/2 gem able to provide instant feedback.
MIT License
477 stars 95 forks source link

ios remote push notification not received after getting out of airplane mode #131

Closed galharth closed 3 months ago

galharth commented 3 months ago

I'm sending a remote push notification during the night when my phone is in airplane mode. When I wake up and turn off the airplane mode, I don't get the push notification.

I checked the logs, and I received this response from Apple after I sent the push notification during the night (when my phone is in airplane mode):

{"headers":{":status":"200","apns-id":"792ebfb6-9292-472a-8487-a4497a0246df"},"body":""}

I set a correct expiration date (2 days to the future), and the priority of the notification is 10.

It’s important to note that the issue only arises in the production environment, not in the development environment.

Has anyone encountered a similar issue or knows How I can fix it?

Thanks, Gal

benubois commented 3 months ago

Hi Gal,

apnotic only helps with getting notification data from your server to Apple's server. Once Apple has received the payload, the delivery to actual devices is up to them. This seems unrelated to apnotic.

galharth commented 3 months ago

@benubois Do you have any idea why it can happen? I'm stuck on this issue. thanks 🙏