androidseb25 / iGotify-Notification-Assistent

Docker container for sending Gotify notifications to iOS devices (bridge to gotify websocket)
MIT License
131 stars 6 forks source link

Push notification after iPhone goes online #67

Closed phoenix1184 closed 3 months ago

phoenix1184 commented 3 months ago

First, thanks for your work. I appreciate it realy.

I have an iPhone 15. Most of my notifications comes in at night but then my phone is offline. Netxt mornig I reconect my phone to Internet. All notifications are available on gotify, but there is no push notification on my phone. If phone is online when notifications happen, everything works like expected.

Before you changed to secntfy, push notifications came when phone goes online again. It would be great, if that feature would be possible to implement in future.

androidseb25 commented 3 months ago

Hi, it's not a feature it's the APN service from apple that work so, I only transmit the message to the apple service and they hold it so long they want on there servers until device is online...

Maybe the reason of that is the encryption of the message and they can't read it and analyze the messages...

I don't know it's not my part sorry

phoenix1184 commented 3 months ago

Just thinking loud after some research, maybe you already doing it:

https://developer.apple.com/documentation/usernotifications/sending-notification-requests-to-apns

apns-expiration

May this be a possible solution?

androidseb25 commented 3 months ago

Ok I will take a look later if I set this parameter.

androidseb25 commented 3 months ago

so I updated now the API. The expiration time is now set to 3 days (before it was 1 day) I hope it works