Open sstratoti opened 2 months ago
From discussion in #6
it may make more sense to create an inbound msg object with a bit more depth in structure. This would be a breaking change for inbound messages.
Like:
msg.notificationOverride = { title: "dynamic title!", subtitle: "dynamic subtitle", message: "Battery is at 50%!! Replace it soon!", url: "/hacs", services: "my_phone, partners_phone, kids_phone", cameraEntity: "camera.my_back_yard", interruptionLevel: "time-sensitive", tag: "xyzTag", actions: [ { title: "New action Title for action 1!", actionOutput:1, activationMode: "foreground", uri: "/example", textInputButtonTitle: "Reply", textInputPlaceholder: "Type here...", authenticationRequired: true, destructive: false, behavior: "default", icon: "mdi:alarm" }, { title: "Another action title for action 2", actionOutput:3, activationMode: "background", uri: "/another-example", // Additional properties... } // Add more actions as needed ] };
Please feel free to discuss this change in this issue. Thanks!
From discussion in #6
it may make more sense to create an inbound msg object with a bit more depth in structure. This would be a breaking change for inbound messages.
Like: