home-assistant.io/source/_docs/ecosystem/ios/notifications/requesting_location_updates.markdown
2017-04-16 15:23:23 -07:00

1.0 KiB

layout, title, description, date, sidebar, comments, sharing, footer, redirect_from
layout title description date sidebar comments sharing footer redirect_from
page Requesting location updates Ask the device to send a location update remotely 2016-10-25 15:00:00 -0700 true false true true /ecosystem/ios/notifications/requesting_location_updates/

**Do not rely on this functionality due to the time limits mentioned below.**

You can force a device to attempt to report its location by sending a special notification.

automation
  - alias: Notify iOS app
    trigger:
      ...
    action:
      service: notify.ios_<your_device_id_here>
      data:
        message: "request_location_update"

Assuming the device receives the notification, it will attempt to get a location update within 5 seconds and report it to Home Assistant. This is a little bit hit or miss since Apple imposes a maximum time allowed for the app to work with the notification and location updates sometimes take longer than usual due to factors such as waiting for GPS acquisition.