Help sending images to iOS - ios14 issue?

Hello, I am trying to send a snapshot of my cam when there is motion to my iPhone.
Already tried many solutions with yaml and node red and the message pops in my iPhone and opens the companion app, but never shows me any image.
I am trying with a static image but no luck:

- alias: Doorbell Alert
    platform: state
    entity_id: switch.room_light
    to: 'off'
  - data:
          content-type: png
          hide-thumbnail: false
          url: ''
      message: Hello
    service: notify.mobile_app_iphone_de_moimeme

I do it with Node Red, way easier, if you want the flow just say it…

yo can i see your ND setup? I am using ND to send a jpeg when my dog door is opened BUT I am getting an error in the IOS notification in the image! I think it has something to do with a cert error but I dont know enough here and need some help.

HA works fine on my IOS app (local and remote)
So I am not sure why I am getting this message below.

Any help would be greatly appreciated.

Call Service Node

   "message":"Doggy door left open",
   "data" : {
       "attachment": {
            "content-type": "jpeg",
            "url": "https://ipaddress:8123/media/"


Error message - it shows as an image but displays this text:

Failed to load attachment
URLSessionTask failed with error: The certificate for this server is invalid. You might be connecting to a server that is pretending to be “my-ipadress” which could put your confidential information at risk.

Screen shot of what I see on my phone:

For what I see I believe iOS sees your address as a risk and won’t open it. I use direct path for where picture was produced (telegram_bot/send_photo), here is my code if it helps:

    "file": "/config/www/images/snapshot_camera.garagem",
    "caption": "Garagem aberta fora de horas"

Damn apple… Do you know of anyway to mark this address as safe? on an IOS device

Ok thanks for sharing that code. I am not sure exactly where to put it, I pasted it into my “call service” nodes “data” section… the node that notifies my iphone. Is that where you put it? I dont think im doing it right cuz no image showed up on my phone.

This has nothing to do with Apple.

You can’t use SSL certificates for IP addresses. Only domain names. So it would have t be:

   "message":"Doggy door left open",
   "data" : {
       "attachment": {
            "content-type": "jpeg",
            "url": "https://your_domain_name_here.your_tld:8123/media/"

I appreciate the info.
Ok I swapped out the IP for my domain name url, now getting this error:

I tried this out of curiosity:
I browsed to my HA server remotely. Then opened the JPEG file in my media folder in a new tab to see what the URL link was. It is:

If I try this link it shows an error: “Unauthorized”

So I need that “/authSig=kljsdnflsdn” after the URL in my node in NodeRed. I dont know much about certs and all that but I think somewhere here is my issue? maybe

When I was using the iOS messaging app I used:


The file was located in


Everything in the /local folder is available externally but cannot be listed remotely. So if you want some level of security for preventing people browsing common image names change /some_directory to a random string like /asdQQLopHDlgp342nd892/. Then the chance of someone randomly browsing to it is very slim.

This was before the media folder was a thing. I believe I read that it can be exposed to external networks but am not sure how.

EDIT: see here: