Update to match latest iOS Calendar plugin, add allDay, don't return error if user cancels dialog.#4
Conversation
… (calendarName) as well as my pull request to the iOS plugin (reminderMinutes). Don't call failure callback if the user just cancelled the dialog. Add support for allDay events.
|
Where is the ios project currently maintained? I thought it was https://github.com/felixactv8/Phonegap-Calendar-Plugin-ios and I don't see any thing about these parameters. Also, if we're going to change the signature to allow more functionality (i.e. allDay), I'd prefer to refactor to a format that looks more like |
|
Yes, it looks like that's the most up-to-date github project for iOS. Sorry, it seems the code I referenced with the "calendarName" parameter came from some (non-HEAD) version of iPhone/CalendarPlugin in https://github.com/purplecabbage/phonegap-plugins. And my pull request went there: purplecabbage/phonegap-plugins#105. I agree, an options parameter would better. I notice that the Android plugin documentation shows Date objects as parameters while the documentation for the iOS plugin shows date strings. We may want to check if they really accept the same parameter types. (And it would be nice to document whether the dates are localtime or UTC.) |
|
I think https://github.com/phonegap/phonegap-plugins is more up to date than the purplecabbage repo. I'll try and get ahold of @felixactv8 to see his thoughts on refactoring the method signatures, and you can also try Pull Requesting his repo, although I think we should change the signature to use an options hash first. We should definitely accept the same parameter types, and I'm more in favor of using Date objects since then you don't need to worry about timezones. |
|
Hi Guys, Thanks for reaching out. I haven't maintained this in a while, since Cordova was going through a lot of versions. I wanted to wait until any major changes were somewhat done before changing code.. I'm all up for refactoring if it makes sense. What's the plan ? -felix |
|
Hey Felix, I think we should change the method signatures to look like this: I also propose we try and use javascript Date objects instead of strings but I would be ok with accepting either. I'm happy to fix up this pull request to fit the new style, and I can do ios as well if that's easier for you. I think @trevoriancox had some other changes in a pull request against the wrong repo. Maybe if he can re-work that on and submit to you, we can have this wrapped up this week! Cheers, |
|
My proposal was to add reminder time and allDay, so that would work well with the idea of a new options parameter. |
|
@samsonasu, i'm cool with that method signature...go ahead and make the change, test then make a pull request and i'll make sure it gets pulled. @trevor, that sounds great. There's a lot of changes, and my only concern is iOS7..if there's anything that's changing with the framework... Keep me posted and I'll pull the requests as soon as I see them... Thanks, |
|
mm, not me. :) |
|
No activity in 3 years. Closing. |
Change parameters to match both latest changes to iOS Calendar plugin (calendarName) as well as my pull request to the iOS plugin (reminderMinutes).
Don't call failure callback with technical error message if the user just cancelled the dialog.
Add support for allDay events.