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
Some sites use data:text/calendar urls to handle calendar invites.
Brave currently does not support data URLs in general (brave/brave-ios#666) but to add to that, we currently handle calendar invites by presenting a SFSafariViewController to handle the load and present the appropriate UI. This is unfortunately not possible to handle with data URLs as SFSafariViewController only supports http/https schemes.
One possible workaround is write the data in the URL (after the data:text/calendar prefix) to disk as a ics file and presenting it via QuickLook or the share sheet, at which point iOS may be able to show the appropriate flow for the calendar invite. This has been tested and does not work.
Another possible way would be to parse the actual invite and present an EKEventEditViewController. This will require a write-only permission prompt on iOS 16 and below, but on iOS 17 will be permission-free
The text was updated successfully, but these errors were encountered:
We would only need NSCalendarsWriteOnlyAccessUsageDescription and it would only actually be used on iOS 15 & 16, the reason being that EKEventEditViewController runs in a separate process in iOS 17 and no longer requires a permission prompt. Described here: https://developer.apple.com/videos/play/wwdc2023/10052/?time=296
Description:
Some sites use
data:text/calendar
urls to handle calendar invites.Brave currently does not support
data
URLs in general (brave/brave-ios#666) but to add to that, we currently handle calendar invites by presenting aSFSafariViewController
to handle the load and present the appropriate UI. This is unfortunately not possible to handle with data URLs asSFSafariViewController
only supports http/https schemes.One possible workaround is write the data in the URL (after theThis has been tested and does not work.data:text/calendar
prefix) to disk as a ics file and presenting it via QuickLook or the share sheet, at which point iOS may be able to show the appropriate flow for the calendar invite.Another possible way would be to parse the actual invite and present an
EKEventEditViewController
. This will require a write-only permission prompt on iOS 16 and below, but on iOS 17 will be permission-freeThe text was updated successfully, but these errors were encountered: