Titanium JIRA Archive
Appcelerator Community (AC)

[AC-4720] Wanted to set attendee/invitee email while creating calendar event

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionHold
Resolution Date2017-01-18T15:02:41.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, ios
Reporterdev.sp
AssigneeShak Hossain
Created2017-01-10T05:52:38.000+0000
Updated2017-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 ?

Comments

  1. Sharif AbuDarda 2017-01-10

    You are looking for this I think. http://docs.appcelerator.com/platform/latest/#!/api/Titanium.Calendar.Attendee-property-email.
  2. dev.sp 2017-01-10

    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
  3. Sharif AbuDarda 2017-01-11

    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.
  4. dev.sp 2017-01-12

    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.
  5. dev.sp 2017-01-13

    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
  6. dev.sp 2017-01-16

    Will somebody reply and give me the solution ? I want example for iOS as well as solution for Android also..Thank you.
  7. dev.sp 2017-01-17

    Please update and give me the solution.
  8. Sharif AbuDarda 2017-01-17

    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.
  9. dev.sp 2017-01-17

    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..
  10. Sharif AbuDarda 2017-01-17

  11. Hans Knöchel 2017-01-18

    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.
  12. dev.sp 2017-01-18

    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.

JSON Source