Skip to content

Commit 5521056

Browse files
Merge pull request #273 from SALT-AND-PEPPER/docs/ios-mainthread-init
Adds a note about accessing the Geolocator on iOS on the mainthread first to prevent deadlocks
2 parents d7e0d63 + 4981705 commit 5521056

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/GettingStarted.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ Simply Add:
7575
<string>This app needs access to location when open.</string>
7676
```
7777

78+
Ensure the `CrossGeolocator.Current` instance is first accessed on the main thread to prevent any deadlocks when first accessing it on a background thread. If you're unsure about the first access simply call `CrossGeolocator.Current` in your `AppDelegate`.
79+
7880
#### Background Updates
7981
Only implement this and add these properites if you need background updates for your application. Most likely you will not. Adding this also has direct impact on permissions and prompts to the user. Please be very careful when adding this information.
8082

0 commit comments

Comments
 (0)