fix(alerts): iOS data.url only — clickAction rejected by apns schema [#344 #778]
ci / lint (push) Successful in 46s
ci / lint (push) Successful in 46s
Watchdog notify crash root-caused: iOS companion schema rejects data.clickAction; url is the iOS deep-link key. Suite updated to assert url presence per alert. https://projects.knownelement.com/issues/778
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ ALERTS="POWER OUTAGE|UPS BATTERY LOW|UPS COMMS LOST|UPS RUNTIME LOW|Power restor
|
||||
DL_OK=1
|
||||
IFS='|' read -ra ALERT_ARR <<< "$ALERTS"
|
||||
for a in "${ALERT_ARR[@]}"; do
|
||||
if ! grep -A2 "title: $a$" automations.yaml | grep -q "clickAction:"; then
|
||||
if ! grep -A2 "title: $a$" automations.yaml | grep -q " url: "; then
|
||||
echo " (missing deep link: $a)"
|
||||
DL_OK=0
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user