You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.
varlocationResult=newGeoLocationResult();varlocator=newGeolocator(Android.App.Application.Context){DesiredAccuracy=50};locationResult.IsAvailable=locator.IsGeolocationAvailable;locationResult.IsEnabled=locator.IsGeolocationEnabled;returnlocator.GetPositionAsync(10000).ContinueWith(t =>{// User might have cancelled it or faulted (GPS switched off). If this is the casem return null.if(t.IsCanceled||t.Status==TaskStatus.Faulted)returnnull;locationResult.Accuracy=t.Result.Accuracy;locationResult.Altitude=t.Result.Altitude;locationResult.AltitudeAccuracy=t.Result.AltitudeAccuracy;locationResult.Heading=t.Result.Heading;locationResult.Latitude=t.Result.Latitude;locationResult.Longitude=t.Result.Longitude;locationResult.Speed=t.Result.Speed;returnlocationResult;});
This works fine on all phones I've tested (LG, Samsung, HTC, Sony) however on the Huawei it always gets has t.IsCancelled = true. I've checked that GPS is enabled and that applications can use it (i.e. settings match other phones).
When opening google maps, my location is given, so I'm assuming that hardware is ok.
The text was updated successfully, but these errors were encountered:
The following code:
This works fine on all phones I've tested (LG, Samsung, HTC, Sony) however on the Huawei it always gets has t.IsCancelled = true. I've checked that GPS is enabled and that applications can use it (i.e. settings match other phones).
When opening google maps, my location is given, so I'm assuming that hardware is ok.
The text was updated successfully, but these errors were encountered: