iOS push notification with map category

I had trouble figuring this out when following the example in the docs, the solution was pretty simple in the end - just have to change “data” to “data_template” and then it will work. Here’s my full working notification for anybody else who might be searching for the solution.

      - service: notify.ios_seans_iphone_xs
        data_template:
          title: "Left Car"
          message: "You've exited the car."
          data:
            url: ""
            push:
              category: "map"
            action_data:
              latitude: "{{states.device_tracker.life360_sean.attributes.latitude}}"
              longitude: "{{states.device_tracker.life360_sean.attributes.longitude}}"
              category: "car"
              badge: 0
1 Like