Skip to content

Commit

Permalink
Merge pull request #273 from SALT-AND-PEPPER/docs/ios-mainthread-init
Browse files Browse the repository at this point in the history
Adds a note about accessing the Geolocator on iOS on the mainthread first to prevent deadlocks
  • Loading branch information
jamesmontemagno authored Jul 5, 2019
2 parents d7e0d63 + 4981705 commit 5521056
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,8 @@ Simply Add:
<string>This app needs access to location when open.</string>
```

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`.

#### Background Updates
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.

Expand Down

0 comments on commit 5521056

Please sign in to comment.