Skip to content

Failed to create a calendar on iOS 18 #89

@darkstarx

Description

@darkstarx

Hello guys!
I ran into a problem.

createCalendar ignores localAccountName and tries to find local or iClod source. Since iCloud is activated on the device, the local source is absent. But the package fails trying to find iCloud source.

let iCloudSources = eventStore.sources.filter { $0.sourceType == .calDAV && $0.sourceIdentifier == "iCloud" }

My iCloud source has sourceType calDAV but "iCloud" is its title but not the sourceIdentifier. So, getSource returns the default source which is google, where I unable create calendars.

I would be able to find an account among existing calendars using retrieveCalendars and pass it as localAccountName in createCalendar unless the localAccountName be ignored, but it is. An even more, the ETAccount doesn't have a title from EKSource, so I can't define the iCloud account in the dart code as well :(

Please, help to solve the problem.

eventide: ^1.0.2
iOS 18.7.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions