Skip to content

Commit ce4b3a7

Browse files
Adds section about background modes on iOS to the README (#1709)
1 parent 3567ef9 commit ce4b3a7

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

geolocator/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## NEXT
2+
3+
- Adds section about `UIBackgroundModes` to the README.
4+
15
## 14.0.1
26

37
- Adds section about `FOREGROUND_SERVICE_LOCATION` to the README.

geolocator/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,15 @@ The second key (in this example called `YourPurposeKey`) should match the purpos
123123
> NOTE: the first time requesting temporary full accuracy access it might take several seconds for the pop-up to show. This is due to the fact that iOS is determining the exact user location which may take several seconds. Unfortunately this is out of our hands.
124124
</details>
125125
126+
On iOS 16 and above you need to specify `UIBackgroundModes` `location` to receive location updates in the background.
127+
128+
``` xml
129+
<key>UIBackgroundModes</key>
130+
<array>
131+
<string>location</string>
132+
</array>
133+
```
134+
126135
<details>
127136
<summary>macOS</summary>
128137

0 commit comments

Comments
 (0)