[NGCordova] Calendar Plugin Help

Hi I’m currently following this blog

I am currently encountering an error where it is looking for a calendar_id

I have managed to acquire my current calendars in the list using the listCalendars method of the calendarplugin

I still don’t know where to add that calendar_id that is required by this method

$cordovaCalendar.createEvent({
        **calendar_id: 2**
        title: 'Space Race',
        location: 'The Moon',
        notes: 'Bring sandwiches',
        startDate: new Date(2015, 0, 15, 18, 30, 0, 0, 0),
        endDate: new Date(2015, 1, 17, 12, 0, 0, 0, 0)
    }).then(function (result) {
        console.log("Event created successfully");
    }, function (err) {
        console.error("There was an error: " + err);
    });

Thanks

1 Like

r u able to access native calendar through this app and did u run u r apk on android mobile
am having hardtime accessing native api thru this plug in if u find a solution plzz let me know

please update your plugin calendar, it work on my project. plugin calendar was updated 4.3.1. thanks