Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EKCADErrorDomain 1014 #94

Closed
duzenko opened this issue May 23, 2019 · 6 comments
Closed

EKCADErrorDomain 1014 #94

duzenko opened this issue May 23, 2019 · 6 comments

Comments

@duzenko
Copy link
Contributor

duzenko commented May 23, 2019

Getting this exception every time on iPhone 4S with this code
final existingEventsRes = await deviceCalendar.retrieveEvents(calendar.id, filter);
deviceCalendar is regular (non-readonly)

Error getting shared calendar invitations for entity types 3 from daemon: Error Domain=EKCADErrorDomain Code=1014 "(null)"

Quick search in the internet hints a bug in iOS with a workaround described here

@nickrandolph
Copy link
Contributor

Thanks @duzenko for reporting this. Would you be able to create a PR with the change proposed in the link you mentioned?

@duzenko
Copy link
Contributor Author

duzenko commented May 24, 2019

Thanks @duzenko for reporting this. Would you be able to create a PR with the change proposed in the link you mentioned?

I'm new to dart and flutter. PR'ing plugins is something I yet need to learn.
Moreover, this code runs just fine on a 6S so it might be an iOS9-specific issue.
I'm thinking something like (SwiftDeviceCalendarPlugin.swift/retrieveEvents)

if iOS10up
 let ekCalendar = self.eventStore.calendar(withIdentifier: calendarId)
else
 let ekCalendar = self.eventStore.calendars.firstwhere(Id == calendarId)

Does it make sense?
Where do I read about debugging/patching plugins for flutter? I need to test that my change actually works before PR'ing it.

@MaikuB
Copy link
Contributor

MaikuB commented Jun 3, 2019

Plugins make use of platform channels so I'd suggest having a read about them here. You would need open the Android/iOS side of the example apps (not the plugin( in the appropriate IDE to debug the Android/iOS code for the plugin

@duzenko
Copy link
Contributor Author

duzenko commented Jun 4, 2019

Thanks
I tried building the example app but first it gave architecture error (ARM64 vs standard) and then this
image

@duzenko
Copy link
Contributor Author

duzenko commented Jun 4, 2019

Uh-oh
Looks like a bad type cast
https://stackoverflow.com/a/45094091/505984
Did you want to use an Int64 here?
start: Int(ekEvent.startDate.timeIntervalSince1970) * 1000,

@nickrandolph
Copy link
Contributor

Closing this issue as #98 addresses this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants