Open cga2351 opened 1 year ago
I noticed that above code is the master branch, the develop branch has already add the event.DURATION param according to the endDate.
I cloned the develop branch code and added to my flutter project to test, it create forever recurrent event successfully, But, it seems like the pub.dev release is not released with the newest code? can you release newest version to the pub.dev? thanks.
Describe the bug can't create forever recurrent event on samsung s10, also failed on huawei mate30.
To Reproduce on samsung s10, I add a recurrent event, with following Event param:
but, it only create serveral events, not forever.
Expected behavior create forever recurrent event.
Device(s) tested This can be very important as not all device vendors do calendar in the same way.
Flutter doctor Doctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel stable, 3.3.3, on Microsoft Windows [版本 10.0.19044.2006], locale zh-CN) [√] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [√] Chrome - develop for the web [√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.0) [√] Android Studio (version 2021.1) [√] Android Studio (version 4.1) [√] IntelliJ IDEA Community Edition (version 2021.1) [√] Connected device (4 available) [√] HTTP Host Availability
Additional context I checked the plugins source code, maybe the following function caused it?
because I found the description on android doc of android CalendarContract.Events:
Insert
When inserting a new event the following fields must be included:
as above source code, the plugin only set DTEND, and set DURATION null.
and I also test android api, and set ContentValue that 1.no Events.DTEND 2.Events.DURATION = "PT1H" and it can create recurrent event succesfully.