mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-15 13:26:54 +00:00
iOS docs update
This commit is contained in:
parent
eb37441a88
commit
86b7c07ad6
@ -34,7 +34,7 @@ At launch, Home Assistant for iOS sets up geofences for all zones in your Home A
|
|||||||
|
|
||||||
### Configuration
|
### Configuration
|
||||||
|
|
||||||
Add `track_ios: true` to your zone configurations to enable it for tracking in all connected iOS apps.
|
Add `track_ios: false` to your zone configurations to disable zone location tracking for all connected iOS apps.
|
||||||
|
|
||||||
### iBeacons
|
### iBeacons
|
||||||
|
|
||||||
|
@ -24,10 +24,28 @@ data:
|
|||||||
push:
|
push:
|
||||||
category: map
|
category: map
|
||||||
action_data:
|
action_data:
|
||||||
latitude: 40.785091
|
latitude: "40.785091"
|
||||||
longitude: -73.968285
|
longitude: "-73.968285"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Showing a second pin
|
||||||
|
|
||||||
|
You can use the following properties under `action_data` to display a second pin. If used, the first pin will be red and the second green.
|
||||||
|
|
||||||
|
- **second_latitude**: The latitude of the second pin. **Must be a string!**
|
||||||
|
- **second_longitude**: The longitude of the second pin. **Must be a string!**
|
||||||
|
- **shows_line_between_points**: A Boolean value indicating whether a line should be drawn between the first and second pin.
|
||||||
|
|
||||||
|
## Extra configuration
|
||||||
|
|
||||||
|
You can also pass the following properties under `action_data` to modify the map in various ways. All are expected to be boolean values unless otherwise noted:
|
||||||
|
|
||||||
|
- **shows_compass**: A Boolean indicating whether the map displays a compass control.
|
||||||
|
- **shows_points_of_interest**: A Boolean indicating whether the map displays point-of-interest information.
|
||||||
|
- **shows_scale**: A Boolean indicating whether the map shows scale information.
|
||||||
|
- **shows_traffic**: A Boolean value indicating whether the map displays traffic information.
|
||||||
|
- **shows_user_location**: A Boolean value indicating whether the map should try to display the user’s location.
|
||||||
|
|
||||||
<p class='img'>
|
<p class='img'>
|
||||||
<img src='/images/ios/map.png' />
|
<img src='/images/ios/map.png' />
|
||||||
An example of the map dynamic content.
|
An example of the map dynamic content.
|
||||||
@ -60,3 +78,7 @@ data:
|
|||||||
# Combining with actionable notifications
|
# Combining with actionable notifications
|
||||||
|
|
||||||
As you can see the `category` key is used to tell the device what kind of content extension to use. You can use the same category identifiers in your own custom [actions](/ecosystem/ios/notifications/actions/) to add actions to the content extension.
|
As you can see the `category` key is used to tell the device what kind of content extension to use. You can use the same category identifiers in your own custom [actions](/ecosystem/ios/notifications/actions/) to add actions to the content extension.
|
||||||
|
|
||||||
|
# Troubleshooting
|
||||||
|
|
||||||
|
If you are having problems with receiving these special notifications try restarting your phone first. The extensions somewhat often fail to register properly until a restart.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user