Skip to content

Commit

Permalink
Merge pull request #278 from nbsoftware/master
Browse files Browse the repository at this point in the history
Should fix issue #274
  • Loading branch information
jamesmontemagno authored Oct 1, 2018
2 parents 66fbf30 + 4379221 commit f47b3ee
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 f47b3ee

Please sign in to comment.