deltachat / notifiers

Notify devices
Apache License 2.0
6 stars 0 forks source link

http-header `apns-push-type: alert` missing #22

Closed r10s closed 7 months ago

r10s commented 7 months ago

https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_developer_usernotifications_filtering says:

To silence a remote notification, you must set the apns-push-type header field to alert when you send the notification to the APNS server. Otherwise, the system always displays the notification banner to the user.

seems we need to set the http-header apns-push-type: alert - i assume, this is currently not the case, as as silencing is currently not working and as there is a PR for exactly that open at https://github.com/WalletConnect/a2/pull/74 - more information at https://developer.apple.com/documentation/usernotifications/sending-notification-requests-to-apns

nb: the client-part was just merged with https://github.com/deltachat/deltachat-ios/pull/2124 and compliance seems to be set, so this single header line might be the last bit to finally make silencing working :)