Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24248] Android: Ti.Calendar Recurring Events are not clearly exposed

GitHub Issuen/a
TypeNew Feature
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-02-26T18:21:06.000+0000
Affected Version/sn/a
Fix Version/sRelease 7.1.0
ComponentsAndroid
Labelsandroid
ReporterKiley Williams
AssigneeYordan Banev
Created2016-12-14T17:46:42.000+0000
Updated2018-03-06T22:38:16.000+0000

Description

The only current way to determine if an event is part of a larger recurrence/set of recurring events is to compare its ID to the ID of other events. The CalendarContract for Android has this data available for consumption in their SDK: https://developer.android.com/reference/android/provider/CalendarContract.Instances.html. I am under the impression that it is simply not implemented fully in the Titanium SDK, and it would be very helpful if it were.

Comments

  1. Sharif AbuDarda 2016-12-15

    Hello, Can you share sample code to test the issue?
  2. Kiley Williams 2016-12-15

    On iOS, I do the following and get information about recurring event data:
       
       // rawDeviceCalendarEvent is an instance of Ti.Calendar.Event
       
       var first_recurrence_rule = rawDeviceCalendarEvent.recurrenceRules[0];
       
       var recurrenceObject = {
       id: currentEventData.id,
       daysOfTheMonth: first_recurrence_rule.getDaysOfTheMonth(),
       daysOfTheWeek: first_recurrence_rule.getDaysOfTheWeek(),
       daysOfTheYear: first_recurrence_rule.getDaysOfTheYear(),
       end: first_recurrence_rule.getEnd(),
       frequency: first_recurrence_rule.getFrequency(),
       instanceStart: currentEventData.start,
       interval: first_recurrence_rule.getInterval(),
       monthsOfTheYear: first_recurrence_rule.getMonthsOfTheYear(),
       weeksOfTheYear: first_recurrence_rule.getWeeksOfTheYear()
       };
       
    There is no "sample" code for Android because it currently is not even possible on Android... which is the reason for this bug...
  3. Sharif AbuDarda 2016-12-20

    Hello, Thanks for the ticket. We will consider it as a feature request. Our engineers will look into it.
  4. Kiley Williams 2017-02-13

    Hi. Has there been any movement on this?
  5. Yordan Banev 2017-09-07

    PR: https://github.com/appcelerator/titanium_mobile/pull/9412
  6. Kiley Williams 2017-12-08

    Thanks for working this through, everyone.
  7. Yordan Banev 2018-02-22

    7_1_X: https://github.com/appcelerator/titanium_mobile/pull/9869
  8. Lokesh Choudhary 2018-02-26

    FR Passed. PR's merged.
  9. Lokesh Choudhary 2018-03-06

    Verified the fix in SDK 7.2.0.v20180305152636 & 7.1.0.v20180306061214. Closing. Studio Ver: 5.0.0.201712081732 OS Ver: 10.13.2 Xcode Ver: Xcode 9.2 Appc NPM: 4.2.12 Appc CLI: 7.0.2 Daemon Ver: 1.0.1 Ti CLI Ver: 5.0.14 Alloy Ver: 1.11.0 Node Ver: 8.9.1 NPM Ver: 5.5.1 Java Ver: 1.8.0_101 Devices: ⇨ google Nexus 5 — Android 6.0.1 ⇨ google Nexus 6P — Android 8.0.0

JSON Source