I was contemplating adding notifications to my app, Droidstack. I would've liked to be able to add notifications for when new answers are posted to a user's (favorite) questions, when new comments are posted in reply to them or when they're questions / answers are edited by someone else.
Unfortunately, the only ways I could do that are:
- Download all the questions and answers of a user every 15 minutes. These might be in the hundreds, so not a good idea.
- Download only the last 10 items, sorted by activity, and see if they change. If any changes appear, use
/questions/{id}/timeline
to figure out what changed. Not a good idea because that means a separate request for every changed item, plus there's no/answers/{id}/timeline
(so if an answer changes I can't know what changed -- upvote/downvote, comment, ...).
That's why I propose /users/{id}/notifications
(or name it any way you want, like updates
), that would gather all this info under a single API call. This would be very similar to the /timeline
calls.
Also, none of the data that would be provided by such a call is private. This means that this doesn't have to wait for 2.0. Maybe 1.1? :)