xamarin / Essentials

Xamarin.Essentials is no longer supported. Migrate your apps to .NET MAUI, which includes Maui.Essentials.
https://aka.ms/xamarin-upgrade
Other
1.53k stars 506 forks source link

Add support for iOS17+ Calendar Permissions #2109

Closed jfversluis closed 7 months ago

jfversluis commented 8 months ago

Description of Change

As of iOS 17, there is new permissions for accessing/writing Calendar data and Reminders. This PR adds support for those in the Permissions APIs.

Ports over https://github.com/dotnet/maui/pull/18868 from .NET MAUI

Bugs Fixed

jfversluis commented 7 months ago

We need some tricks here for the build pipeline in order to get this in successfully. It needs Xcode 15 and Xamarin.iOS, but the macOS12 image has Xamarin.iOS and no Xcode 15 and macOS 13 has no Xamarin.iOS but has Xcode 15.

jfversluis commented 7 months ago

Blocked by https://github.com/xamarin/XamarinComponents/pull/1433 or we need to rewrite the whole pipeline which I'm reluctant to do.

jfversluis commented 7 months ago

Actually I don't think we can fix this at all since Xamarin.iOS will support Xcode 15 but not any of the new iOS 17 APIs. And this new functionality uses new APIs. So fixes are to move to .NET MAUI or use the workaround as described in this issue: https://github.com/xamarin/Essentials/issues/2105#issuecomment-1845020851