Issue with notification to iOS devices with image attached

Hi community,

I’ve trouble to send notifications with images to my iOS device. Multiple configs have been used from the community, but none it working. Trigger notifications works fine. But the image is missing I don’t see is neiher in the preview as icon nor in the message itself.

It was tested accessing the jpg file file via browser. So it is there and I can access it. But it is not considered in my notification.
Also tried chatgpt and copilot to review my code. But no major findings. Hope somebody has an advice.

alias: Bewegung_Vordertür
description: Push mit Snapshot
trigger:
  - platform: state
    entity_id: binary_sensor.vordertur_motion_detected
    to: "on"

action:
  - service: camera.snapshot
    data:
      entity_id: camera.vordertur
      filename: "/config/www/camera.vordertur_snapshot.jpg"

  - delay: "00:00:02"

  - service: notify.mobile_app_<device_name>
    data_template:
      title: "🚨 Bewegung an der EufyCam"
      message: "Sieh Dir das Bild an"
      data:
        color: red
        content-type: jpg
        attachment: "/local/camera.vordertur_snapshot.jpg"
        lazy: true

Thanks.

Use this
Ensure this is in your configuration.yaml

allowlist_external_dirs:
    - /config/local

Use this for the snapshot.

 action: camera.snapshot
data:
  filename: /config/www/vordertur_snapshot.jpg
  entity_id: camera.vordertur

Use this to send the photo to your mobile.

action: notify.mobile_app_iphone
data:
  message: Sieh Dir das Bild an
  data:
    content-type: jpg
    image: /local/vordertur_snapshot.jpg
  title: 🚨 Bewegung an der EufyCam

More info here