EddyVerbruggen / Calendar-PhoneGap-Plugin

:date: Cordova plugin to Create, Change, Delete and Find Events in the native Calendar
773 stars 401 forks source link

Ionic + ngCordova -> Add event not working for sunrise, any.do cal #122

Open tanmaydesai89 opened 9 years ago

tanmaydesai89 commented 9 years ago

Hi.

We are using ionic + ngCordova. When clicked on add to calendar, it opens up calendar options[sunrise, any.do, google cal]. But when clicked on Sunrise or Any.do cal, it opens up the app, but does not add event. At the same time, While adding event to Google Cal, it trims event span to one hour only.

EddyVerbruggen commented 9 years ago

Hi, I'll need a little bit more information. Can you strip off the ngCordova stuff and find out what the JS call is that is passed to the plugin? I'm not supporting the ngCordova extension, so I need to know how the plugin is used directly.

tanmaydesai89 commented 9 years ago

Hi.

We are using following code:

window.plugins.calendar.createEventInteractively(name, location, desc, sDate, dDate, success, error);
EddyVerbruggen commented 9 years ago

Aha, that name param doesn't belong there. See the doc for createEventInteractively.

tanmaydesai89 commented 9 years ago

name is var for passing the title of event. This code creates event in Google cal but fails with any.do cal and sunrise cal.

EddyVerbruggen commented 9 years ago

Duh, sorry, thought it referred to the calendarname ;)

Can you tell me what the values are of all the properties?

tanmaydesai89 commented 9 years ago

name - title location - location desc - notes sDate - startDate eDate - endDate success error

EddyVerbruggen commented 9 years ago

I figured ;) What I meant is the actual values - what's the value of eDate. Seriously, having your project would be much easier.

gouroujo commented 9 years ago

Hi Eddy, I have a similar problem with Sunrise cal. While I tried to do a AddEventInteractively and I choose Sunrise to add the event on Android, the validate button in Sunrise is disabled and I have to manually edit the title to be able to save the event. Every field is well filled by the plugin. Thanks a lot

see you