Giter Club home page Giter Club logo

Comments (11)

drkhannah avatar drkhannah commented on May 31, 2024

I get this same error

from calendar-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on May 31, 2024

I will look into this real soon!

from calendar-phonegap-plugin.

drkhannah avatar drkhannah commented on May 31, 2024

any word on this, do you have to create a calendar before calling createEvent, or can you just call createEvent and it will send it to your phones calendar?

from calendar-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on May 31, 2024

Hi, there should be no need to create a calendar first. Can you please send me your project so I can reproduce and fix this issue? Mail me at eddyverbruggen(at)gmail.com

from calendar-phonegap-plugin.

drkhannah avatar drkhannah commented on May 31, 2024

heres the function

function addEventToCalender(obj) {

        var title = obj.EventName;
        var location = obj.EventLocation;
        var notes = obj.EventDetails;
        var showSuccessAlert = "NO";
        for (var i = 0; i < obj.CalendarEvents.length; i++) {
            var startDate = obj.CalendarEvents[i].CalStart;
            var endDate = obj.CalendarEvents[i].CalEnd;

            //Prototype: title, location, notes, startDate, endDate, showSuccessAlert, function Success, function Error
            window.plugins.calendar.createEvent(title, location, notes, startDate, endDate, function (result) { }, function (result) { alert("There was a problem saving the calendar event.\n" + result); });
        }
    }

from calendar-phonegap-plugin.

drkhannah avatar drkhannah commented on May 31, 2024

I get this error on iOS 7 as well

from calendar-phonegap-plugin.

drkhannah avatar drkhannah commented on May 31, 2024

also on android i get an alert that says "there was a problem saving the calendar event. Invalid action"

from calendar-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on May 31, 2024

Hi @drkhannah can you send me your entire project please? It will make reproduction much simpler for me.

from calendar-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on May 31, 2024

Hi guys, the only way I was able to reproduce this error was by passing null values (or any String value) for startDate and endDate to the createEvent function. Using a Date() object fixes this problem.

I've committed some code which will check the date params for proper javaScript Date Objects and invoke the errorCallback in case they're not.

from calendar-phonegap-plugin.

amishaKa avatar amishaKa commented on May 31, 2024

the calendar plugin in the link https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin.git is not working for ios6 simulator.
The error is calendar.m is deprecated for ios 6.0 and onwards.
is there any updated plugin for calendar in ios.

error

from calendar-phonegap-plugin.

EddyVerbruggen avatar EddyVerbruggen commented on May 31, 2024

Those are warnings, they are not preventing the plugin from working. I will switch to the new API in the future, but the warning you are seeing should be ignored. There must be another problem.. you can send me your XCode project if you like me to take a look.

from calendar-phonegap-plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.