Error in automation snapshot from doorbell

The format for camera snapshot is here

Your corrected code should be like this

- id: '1677360232870'
  alias: Send Nest Doorbell Snapshot
  description: ''
  trigger:
  - platform: device
    device_id: ae9616dff9ab2b7e3dc9b96a4822cf62
    domain: nest
    type: doorbell_chime
  action:
  - service: camera.snapshot
    data:
      filename: /config/www/snapshots/doorbell.jpg
    target:
      entity_id: camera.front_camera
  - service: notify.mobile_app_ihsan_iphone_10
    message: Someone is at the door
    data:
      attachment:
        content-type: jpeg
        url: https://xxx.xxx.xx.xx/local/snapshots/doorbell.jpg

It seems you have copy pasted the notification data arguments into the snapshot service call and you have added data key before message in notification call

The documentation is here