home-assistant.io/source/_ecosystem/ios/notifications/requesting_location_updates.markdown
2016-10-26 17:38:58 -07:00

948 B

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

**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.iOSApp
      data:
        message: "request_location_updates"

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.