jamesmontemagno / GeolocatorPlugin

Geolocation plugin for Xamarin and Windows

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compatibility Android 11

SSoetaert opened this issue · comments

Bug Information

Version Number of Plugin: 4.5.0.6
Device Tested On: Google Pixel 3A
Simulator Tested On: /
Version of VS: 16.6.2
Version of Xamarin: 4.4.0.991537
Versions of other things you are using: Android version 11

Steps to reproduce the Behavior

Start app and fetch current location on button click

Expected Behavior

The current position gets returned.

Actual Behavior

Statement always gives null after couple of seconds

Code snippet

var currentPosition = await CrossGeolocator.Current.GetPositionAsync(TimeSpan.FromSeconds(30), null, false);