Skip to content

Commit

Permalink
Should fix issue #274
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsoftware committed Sep 29, 2018
1 parent 66fbf30 commit 4379221
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public async Task<Position> GetLastKnownLocationAsync()
public async Task<Position> GetPositionAsync(TimeSpan? timeout, CancellationToken? cancelToken = null, bool includeHeading = false)
{
#if __IOS__
var permission = Permission.Location;
var permission = Permission.LocationWhenInUse;
var hasPermission = await CheckPermissions(permission);
if (!hasPermission)
throw new GeolocationException(GeolocationError.Unauthorized);
Expand Down

0 comments on commit 4379221

Please sign in to comment.