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

Recurring events on iOS are returned as individual events and not one with a recurring rule #530

Open
brandonguigo opened this issue Mar 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@brandonguigo
Copy link

Describe the bug
I'm trying to display device calendars inside an app.
I have a list of events, one of which has a weekly recurring rule.

Inside the returned list of event, I have my other events as expected.
For the recurring event, each individual occurrence of the event is returned and the recurrence rule for each recurring events returned is missing the dayOfWeek parameter (list is always empty).

I have tried on 5.0 pre-release and it's the same I think

To Reproduce

  1. Create a flutter project
  2. Add a weekly recurring event to your calendar
  3. Get the list of events

Expected behavior
I expect the recurring event to be returned only once with a valid recurring rule

Device(s) tested

  • Device: iPhone 15 Pro Max Simulator
  • OS: iOS 17.4
  • Plugin version 4.3.2 or 5.0 pre-release

Flutter doctor
Android is not configured properly cause new machine and don't plan to run on Android for now

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.0, on macOS 14.4 23E214 darwin-arm64, locale fr-FR)
[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/macos#android-setup for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[!] Android Studio (not installed)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3.4)
[✓] Connected device (4 available)
[✓] Network resources
@brandonguigo brandonguigo added the bug Something isn't working label Mar 14, 2024
@SuperKrallan
Copy link

SuperKrallan commented Aug 18, 2024

Hi!

First of all, recurring events are tricky. It gets even trickier if you change or delete some of them. Is a recurring event one event or is it a series of individual events?
@brandonguigo states "Expected behavior: I expect the recurring event to be returned only once with a valid recurring rule", and I disagree. What if you have 5 events in your series, and then you delete one in the middle? I want them all to be returned. But it seems as when you save a recurring event with a number of parameters, and then retrieve it (or actually them) again, the parameters have been changed and there is an unexpected behaviour if you edit an event in the middle of the series an. So if I save an event with the recurring parameters:
flutter: Rec endDate: 2024-08-17T10:00:00.000+0200
flutter: Rec dayOfMonth: null
flutter: Rec daysOfWeek: null
flutter: Rec monthOfYear: null
flutter: Rec weekOfMonth: null
flutter: Rec interval: 1
flutter: Rec recurrenceFrequency: RecurrenceFrequency.Daily
flutter: Rec totalOccurrences: 5

...and then immediately retrieve the first instance of the event series, I get:
flutter: Rec endDate: 2024-08-17T10:00:00.000
flutter: Rec dayOfMonth: null
flutter: Rec daysOfWeek: []
flutter: Rec monthOfYear: null
flutter: Rec weekOfMonth: null
flutter: Rec interval: 1
flutter: Rec recurrenceFrequency: RecurrenceFrequency.Daily
flutter: Rec totalOccurrences: null

...and this is fishy and if you change an event in the middle, the events before the event that you edit disappear. I will look into this further and probably make a bug report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants