Yuta3849752084375 / gdata-objectivec-client

Automatically exported from code.google.com/p/gdata-objectivec-client
Other
0 stars 0 forks source link

unable to see reminder in calendar when added by code #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I've integerated gcal in iphone app using objective c code
2. While adding event in calendar, i want to set reminder before 10 minutes of 
occurring an event
3. So i've write code as:

NSDate *anHourFromNow = [NSDate dateWithTimeIntervalSinceNow:60*60];
        GDataDateTime *startDateTime = [GDataDateTime dateTimeWithDate:[NSDate date]
                                                              timeZone:[NSTimeZone systemTimeZone]];
        GDataDateTime *endDateTime = [GDataDateTime dateTimeWithDate:anHourFromNow
                                                            timeZone:[NSTimeZone systemTimeZone]];
        GDataReminder *reminder = [GDataReminder reminder];
        [reminder setMinutes:@"10"];

        GDataWhen *when = [GDataWhen whenWithStartTime:startDateTime
                                               endTime:endDateTime];
        [when addReminder:reminder];
        NSArray *arr=[when reminders];

        [event addTime:when];

        if (event)
        {
            // Post the event.
            NSURL *altLinkURL = [[calendar alternateLink] URL];

            ticket = [service fetchEntryByInsertingEntry:event
                                              forFeedURL:altLinkURL
                                                delegate:nil
                                       didFinishSelector:nil];

What is the expected output? What do you see instead?
-->
The event is added in calendar. I am able to see the event in my google 
calendar. But the reminder is not set.

What version of the product are you using? On what operating system?
-->I am using gdata api's on iphone sdk 4.1

Please provide any additional information below.

Original issue reported on code.google.com by nmrt.pr...@gmail.com on 2 Nov 2010 at 7:26

GoogleCodeExporter commented 9 years ago
that is soleved by adding statement:

[reminder setMethod:@"email"];

Even the sample code also does'nt include this statement

Original comment by nmrt.pr...@gmail.com on 2 Nov 2010 at 9:50

GoogleCodeExporter commented 9 years ago
I'll add that to the sample code. Thank you for the suggestion.

Original comment by gregrobbins on 5 Nov 2010 at 1:49

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/gdata-objectivec-client/source/detail?r=594

Original comment by gregrobbins on 5 Nov 2010 at 6:14