feat(apple): notify the sender when a receiver's delivery fails

plannedReceiverNotifications only fired for completed receivers, so a failed
delivery produced no notification. Add a receiverFailed kind wired through the
planner, id, and deliver paths, with localized notifications_receiver_failed_*
strings and a unit test.
This commit is contained in:
2026-07-24 18:45:02 +02:00
parent 35f06a0b6b
commit f513a6118e
3 changed files with 68 additions and 3 deletions

View File

@@ -1948,6 +1948,50 @@
"ru": "Передача получена"
}
},
"notifications_receiver_failed_body": {
"context": "Notification body shown to the sender when a receiver's download fails. {receiver} = receiver name, {transferName} = transfer name.",
"targets": [
"apple"
],
"args": [
{
"name": "receiver",
"type": "string"
},
{
"name": "transferName",
"type": "string"
}
],
"translations": {
"en": "{receiver} couldn't receive “{transferName}”",
"fr": "{receiver} n'a pas pu recevoir « {transferName} »",
"es": "{receiver} no pudo recibir «{transferName}»",
"it": "{receiver} non ha potuto ricevere “{transferName}”",
"de": "{receiver} konnte „{transferName}“ nicht empfangen",
"pt": "{receiver} não conseguiu receber “{transferName}”",
"pl": "{receiver} nie mógł odebrać „{transferName}”",
"nl": "{receiver} kon “{transferName}” niet ontvangen",
"ru": "{receiver} не удалось получить «{transferName}»"
}
},
"notifications_receiver_failed_title": {
"context": "Notification title shown to the sender when a receiver's download fails.",
"targets": [
"apple"
],
"translations": {
"en": "Delivery failed",
"fr": "Échec de l'envoi",
"es": "Error en la entrega",
"it": "Consegna non riuscita",
"de": "Übertragung fehlgeschlagen",
"pt": "Falha na entrega",
"pl": "Dostarczenie nie powiodło się",
"nl": "Levering mislukt",
"ru": "Ошибка доставки"
}
},
"notifications_send_failed_body": {
"context": "Notification body shown to the sender when a shared transfer fails. {transferName} = transfer name.",
"targets": [