Calendar-PhoneGap-Plugin
Calendar-PhoneGap-Plugin copied to clipboard
Class not found error on Android Device
Hello , I am new to phonegap. I want to open calendar for selecting date of birthday. I follow all the steps mentioned in this article. also added code on calendar click icon. But i am getting error as "Class not found" on Phonegap devloper app for android. And If i trying to open default calender with todays date then it not opening. Even i checked other blogs for this issue but no one is giving proper way to solve it. I have added screenshot of error which is taken on android device. Also i have added snippet where i want to open calendar. Please help to solve this issue.
Following is my code: 1)This code not opening calendar $("#datepicker").on('click', function(e){ // alert("clicked"); // - open it at 'today' if(window.plugins.calendar) { // alert("loaded"); window.plugins.calendar.openCalendar(); } else alert("not loaded"); });
- This code giving error "Class not found" $("#datepicker").on('click', function(e){ // alert("clicked"); // - open it at 'today' if(window.plugins.calendar) { // alert("loaded"); var startDate = new Date(2014,4,31,18,30,0,0,0); // beware: month 0 = january, 11 = december var endDate = new Date(2014,4,31,19,30,0,0,0); var title = "Skype meeting With Lead"; //var location = "myleads.html"; var notes = "Need to do a skype meeting with the lead."; var success = function(message) { alert("Success: " + JSON.stringify(message)); }; var error = function(message) { alert("Error: " + message); }; window.plugins.calendar.createCalendar(title,success,error); } else alert("not loaded"); });
Can confirm, seeing the same issue on a new project.
getting same issue......
any updates on this issue?
Any updates on this? Seeing the same error and can't get it to work.
Im getting this issue as well