Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4674] Android: The Ti.Calendar.Event.id property value seems incorrect

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2016-12-27T18:06:21.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid
ReporterKiley Williams
AssigneeShak Hossain
Created2016-12-14T17:43:21.000+0000
Updated2016-12-27T18:06:21.000+0000

Description

When retrieving the calendar events, the calendar events seem to have IDs that are small integers. For example, one event has an ID of "62". This seemed odd when comparing it to previous IDs found to be retrieved from Android. I am wondering if there are some missing values that are not being exposed in Titanium's implementation of the newer versions of Android. Currently, our "hacky" fix for this has been to take the Ti.Calendar.Event.id value, and concatenate it to an ISO-8601 version of the start date. That has given us a somewhat-unique ID for the event. This makes me uncomfortable, so I wanted to have a properly-implemented way of accessing a unique ID.

Comments

  1. Sharif AbuDarda 2016-12-15

    Hello, Share a sample code to test the issue.
  2. Kiley Williams 2016-12-15

    Sample:
       // rawDeviceCalendarEvent is an instance of Ti.Calendar.Event
       
       var currentEventData = {
                       id: rawDeviceCalendarEvent.getId(),
                       title: rawDeviceCalendarEvent.getTitle(),
                       location: rawDeviceCalendarEvent.getLocation(),
                       description: itemDescription
                   };
       
       Ti.API.log(currentEventData.id); // This will output a small number for an ID on Android as mentioned in the description above.
       
  3. Sharif AbuDarda 2016-12-21

    Hello, Can you send a full reproducible code for us to test? We need to regenerate the issue before our engineer's can look into it. Thanks.

JSON Source