From 54785b8dfb51d0c4a6928aa11ab974699286842b Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Wed, 20 Jan 2021 02:03:54 +0200 Subject: [PATCH 1/2] Make sure to actually use the correct method This should fix the #1589 error --- Xamarin.Essentials/Permissions/Permissions.ios.tvos.watchos.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.Essentials/Permissions/Permissions.ios.tvos.watchos.cs b/Xamarin.Essentials/Permissions/Permissions.ios.tvos.watchos.cs index 7404a05bd..e4af5e548 100644 --- a/Xamarin.Essentials/Permissions/Permissions.ios.tvos.watchos.cs +++ b/Xamarin.Essentials/Permissions/Permissions.ios.tvos.watchos.cs @@ -210,7 +210,7 @@ public void AuthorizationChanged(CLLocationManager manager, CLAuthorizationStatu [Export("locationManagerDidChangeAuthorization:")] public void DidChangeAuthorization(CLLocationManager manager) => - AuthorizationStatusChanged?.Invoke(this, new CLAuthorizationChangedEventArgs(manager.AuthorizationStatus)); + AuthorizationStatusChanged?.Invoke(this, new CLAuthorizationChangedEventArgs(manager.GetAuthorizationStatus())); } } From cb133733dccbc56b572da9c750bb2f49edd87950 Mon Sep 17 00:00:00 2001 From: Matthew Leibowitz Date: Wed, 20 Jan 2021 02:45:20 +0200 Subject: [PATCH 2/2] Not sure why this was public --- .../Types/LocationExtensions.ios.tvos.watchos.macos.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Xamarin.Essentials/Types/LocationExtensions.ios.tvos.watchos.macos.cs b/Xamarin.Essentials/Types/LocationExtensions.ios.tvos.watchos.macos.cs index 9d1c7082e..01d52c2db 100644 --- a/Xamarin.Essentials/Types/LocationExtensions.ios.tvos.watchos.macos.cs +++ b/Xamarin.Essentials/Types/LocationExtensions.ios.tvos.watchos.macos.cs @@ -9,7 +9,7 @@ namespace Xamarin.Essentials public static partial class LocationExtensions { [System.Runtime.InteropServices.DllImport(ObjCRuntime.Constants.ObjectiveCLibrary, EntryPoint = "objc_msgSend")] - public static extern CLAuthorizationStatus CLAuthorizationStatus_objc_msgSend(IntPtr receiver, IntPtr selector); + static extern CLAuthorizationStatus CLAuthorizationStatus_objc_msgSend(IntPtr receiver, IntPtr selector); internal static Location ToLocation(this CLPlacemark placemark) => new Location