[AC-1699] Android: Ti.Calendar.createEvent() does not create calendar entry in Android
GitHub Issue | n/a |
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-07-06T02:19:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | n/a |
Labels | TCSupportTriage |
Reporter | Christopher Rowan |
Assignee | Radamantis Torres-Lechuga |
Created | 2014-12-03T22:12:13.000+0000 |
Updated | 2016-03-08T07:38:11.000+0000 |
Description
Steps to Reproduce
Your example code (using a verified calendar code):
Tested on Android 4.4.4 and 4.4.2. Rebooted, refreshed. No luck.
var CALENDAR_TO_USE = 24;
var calendar = Ti.Calendar.getCalendarById(CALENDAR_TO_USE);
// Create the event
var eventBegins = new Date(2014, 11, 26, 12, 0, 0);
var eventEnds = new Date(2014, 11, 26, 14, 0, 0);
var details = {
title: 'Do some stuff',
description: 'I'm going to do some stuff at this time.',
begin: eventBegins,
end: eventEnds
};
var event = calendar.createEvent(details);
// Now add a reminder via e-mail for 10 minutes before the event.
var reminderDetails = {
minutes: 10,
method: Ti.Calendar.METHOD_EMAIL
};
event.createReminder(reminderDetails);
Actual Result
No calendar entry produced.
Expected Result
Calendar entry entered into local calendar id#24
Attachments
Anything?