dotnet / dotnet-api-docs

.NET API reference documentation (.NET 5+, .NET Core, .NET Framework)
https://docs.microsoft.com/dotnet/api/
Other
738 stars 1.57k forks source link

Recommend using Windows Runtime type Geolocator instead of GeoCoordinateWatcher #4003

Open tarekgh opened 4 years ago

tarekgh commented 4 years ago

We need to add a note to the doc https://docs.microsoft.com/en-us/dotnet/api/system.device.location.geocoordinatewatcher?view=netframework-4.8 saying apps recommended to use Geolocator class https://docs.microsoft.com/en-us/uwp/api/windows.devices.geolocation.geolocator for location services instead of using GeoCoordinateWatcher. The reason is GeoCoordinateWatcher is using old Windows Location interfaces which proceeded by the Windows Runtime type Geolocator.

kosaha999 commented 4 years ago

We should say this event GeoCoordinateWatcher.StatusChanged is in maintenance mode, we recommend usage of GeolocatorWinRT API. If you want to continue using This API and are interested in being notified on consent/permission changes, then use CAM API

carlossanlop commented 4 years ago

@tarekgh do you know where the source code for System.Device is located? I don't know who the owner is, and we don't have that area label in the runtime area owners.

tarekgh commented 4 years ago

do you know where the source code for System.Device is located? I don't know who the owner is, and we don't have that area label in the runtime area owners.

http://index/?query=GeoCoordinateWatcher%20

I think no-one owning it. We can just added the proposed remark in a PR.