i setup the iOS platform with just an iOS:
in my config. No extra notification platform added.
I can sent normal notifications but the following just won’t work. The message itself is delivered, i can even force touch on it to get an expanded view, but the map doenst show, just a big blank square with the notification text below…
If i hardcode a gps location i get a ‘loading map’ icon in expanded view but nothing ever shows…
alias: Koen vertrekt ergens, stuur travel time
trigger:
platform: state
entity_id: device_tracker.1
to: 'not_home'
action:
- condition: and
conditions:
- condition: template
value_template: "{{ trigger.from_state.state != 'not_home' }}"
- condition: template
value_template: "{{ trigger.from_state.state != 'home' }}"
- service: notify.ios_iphone_van_koen
data:
message: "Koen komt thuis in ongeveer {{ states.sensor.travel_time_to_home.state }} minuten."
data:
push:
category: map
action_data:
latitude: "{{ states.device_tracker.iphone_van_koen.attributes.latitude }}"
longitude: "{{ states.device_tracker.iphone_van_koen.attributes.longitude }}"
the states.device_tracker.iphone_van_koen.attributes.longitude works in the template editor, it shows a gps coordinate…
am i missing something obvious or is templating not possible with the map location?
(im aware the device tracker that changes state is different to the one i’m sending location of)
Was there a solution to this? I also have this happening now. Notification comes through but no thumbnail, and in expanded view there is just a big white empty space with the message data below.
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.
Thanks @SeanM. Such a simple fix has taken so long. I’ve just got around to fixing my iOS notifications since getting my new XS Max. Good to see I finally have the map working now too.