[AC-4720] Wanted to set attendee/invitee email while creating calendar event
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Hold |
Resolution Date | 2017-01-18T15:02:41.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, ios |
Reporter | dev.sp |
Assignee | Shak Hossain |
Created | 2017-01-10T05:52:38.000+0000 |
Updated | 2017-01-18T15:02:41.000+0000 |
Description
I am creating a calendar event using below code
var CALENDAR_TO_USE = 1;
var calendar = Ti.Calendar.getCalendarById(CALENDAR_TO_USE);
// Create the event
var eventBegins = new Date(2010, 11, 26, 12, 0, 0);
var eventEnds = new Date(2010, 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);
But i wanted to set an email of attendee/invitee also.Can you please help on this ?
You are looking for this I think. http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Calendar.Attendee-property-email.
I have already seen that and according to the document its only for IOS not for Android.Can you please explain how to use on both IOS and Android ? I think its only read property for IOS http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Calendar.Event-property-attendees
Hello, This is not available for Android in our platform yet. Currently, only support for iOS. If this support in native Android, you can provide sufficient data about this related to native platform. And we will consider this a new feature request. Thanks.
Okay. I tried for IOS but it didn't work for me.Can you share one example for iOS ? Yes this supports in native android...Please share example for iOS to set attendee email.Thanks.
I wanted it for android and iOS..I already said that please give me an example for iOS how to use because i have already tried.*Again am saying that i have already seen document but didn't understand how to use.I wanted to set/add attendee's email while creating the calendar event.*Thanks
Will somebody reply and give me the solution ? I want example for iOS as well as solution for Android also..Thank you.
Please update and give me the solution.
Hello, Share sample code on how you are testing on iOS that's not working. We are here to help you identifying bug and fix that. We don't provide hello world or example code. Thanks.
I accept that I don't know..but I think you also don't know ..I just asked that the property "email" for attendee for iOS, how to use ? if you look the document then it's not clear that how to use.. Useless accelerator support team..wasted 1 week with no result..
Hey [~dev.sp], the Ti.Calendar.Attendee API was added in 6.0.0.GA for iOS to *fetch* attendees from all calendar events. It is read-only because you cannot set Calendar attendees programmatically with iOS at this time (see [this link](http://stackoverflow.com/a/28854748/5537752) for more info). For Android, we could think of parity and actually have a ticket for that (TIMOB-17450), but it's also focussing on *getting* the attendees, rather then *saving* them. For those cases, rather use the
[Ti.Calendar.Calendar.createEvent()](http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Calendar.Calendar-method-createEvent)
method on the desired Calendar (e.g.Ti.Calendar.defaultCalendar
) to create the event with the native UI.Hey Hans Knoechel, Thanks for your reply.You got my issue correctly and replied accordingly.I'll wait for this feature to come in titanium.For the time being you can close this ticket.Thank you.