Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filter on events created by the calling app #6

Closed
TheAlmightyBob opened this issue Jan 20, 2016 · 4 comments
Closed

Filter on events created by the calling app #6

TheAlmightyBob opened this issue Jan 20, 2016 · 4 comments

Comments

@TheAlmightyBob
Copy link
Owner

Trying to capture the request/discussion from issue #3, as it's a bit out of the scope of that issue.

The request is to "easily filter all events that were created by my app in order to update or delete them."

Thoughts:

  1. Is creating a calendar for the app insufficient?
    • depending on platform, the app may be able to write to "shared" calendars, or the user may be able to add events to the app's calendar...
  2. Can we leverage platform-specific features for this? Android has some built-in fields to track the "owner" (which we automatically set to the app's ID, but don't otherwise expose)... Windows has something similar at the calendar level, but I'm not sure about the event level... and I can't think of anything like this on iOS at the moment...
  3. ...Or do we need to add our own custom field? Is that feasible cross-platform, or would we want a mix of 2 and 3?
@TheAlmightyBob
Copy link
Owner Author

It should be noted that the current workaround for this is to just have the app separately store the IDs for the calendars/events it creates... via settings, Sqlite, cloud, twitter, whatever.

@TheAlmightyBob
Copy link
Owner Author

Closing because it's non-trivial to implement and storing IDs in the app really seems the better way to go anyhow.

@nielscup
Copy link

nielscup commented Sep 12, 2016

@TheAlmightyBob Some help needed here: I am trying to use the externalID (iOS) to save the event, but when I set the external ID to a value, it is changed whenever I retrieve the events. How can I obtain the ID when saving an event?

Also, if I would save the event IDs in my app, they can get out of sync with my calendar, for instance when I uninstall my app and later reinstall it. Any thoughts on this?

@TheAlmightyBob
Copy link
Owner Author

AddOrUpdateEvent fills in the ExternalID property of the passed-in CalendarEvent object.
I admit that fact should probably be mentioned in the function description.

For the latter question, I don't have any helpful thoughts for you. My immediate thought is that if the user has chosen to uninstall the app, then those events don't belong to the app anymore. If you need to support installing the app onto a device that already has events you want to manage, you could support some kind of explicit user-driven import step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants