#Combining iOS/Android Actionable Notifications

1 messages · Page 1 of 1 (latest)

barren flint
#

Can you combine Android/iOS actions for Notifications, or should they be separated?
For example like this, where platform specific actions are combined into one:

metadata: {}
data:
  title: Porch
  message: Person detected at Porch
  data:
    image: /media/local/camera/porch_person.jpg
    data:
      url: /lovelace/cameras
      clickAction: /lovelace/cameras
      group: "Cameras"

cc: @wheat prairie with permission : )

crimson oracle
#

Unless you're using a notify group, you're only sending to a single device and adding both iOS and Android specific fields doesn't make sense

barren flint
#

Ah okay thanks, I'd imagine there is no benefit in creating 'action: notify.mobile_app' for each device also? Grouping seems the way to go

wheat prairie
#

Grouping is better in general yeah.

#

The one reason I could see for them being separated is if you want the message to be different for the same thing. I don’t know if a group would send different messages from one set of random messages to different devices directly in a group. The only way I’ve tried so far is without the group because I haven’t wanted to blow my husband’s phone up with dumb notifications. 😆

barren flint
#

Haha yeh, forgot WAF we need HAF

#

I'd image they'd also be a delay using that method also, as it uses sequences?

wheat prairie
#

Shouldn’t be noticeable, tbh. Not in my experience at least.

barren flint
#

Great, I'll test both. Thank you guys for your help! Happy holidays 🙂