Hi!
I’m trying to change my notification message by using extra ‘data’ parameter and set priority, ledcolor, vibrationpattern, persistent, etc…but is not working. I can only get a simple notification…no vibration, not persistense, nothing…only a single notification.
I have checked in my companion app, notification are enabled and everything look ok there…running in background is also enabled and configured, so I think app side is ok.
I’m running Android 10.
This is my node test flow:
[{"id":"c081deb9.68962","type":"tab","label":"Alarme / Fumaça","disabled":false,"info":""},{"id":"e646d362.5f757","type":"inject","z":"c081deb9.68962","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":360,"y":640,"wires":[["88e47c4e.960f5"]]},{"id":"88e47c4e.960f5","type":"api-call-service","z":"c081deb9.68962","name":"","server":"2ba92c0c.9dae24","version":1,"debugenabled":false,"service_domain":"notify","service":"mobile_app_mi_9t_pro_jonis","entityId":"","data":"{\t \"title\": \"Alarme de Incendio\",\t \"message\": \"O alarme de incendio foi ativado no escritório!\",\t \"data\": {\t \"color\": \"red\",\t \"channel\": \"Alarme\",\t \"importance\": \"max\",\t \"vibrationPattern\": \"100, 1000, 100, 1000, 100\",\t \"ledColor\": \"red\",\t \"persistent\": \"true\",\t \"tag\": \"persistent\"\t }\t}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":760,"y":640,"wires":[[]]},{"id":"2ba92c0c.9dae24","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]