ChrisKoenig / Windows-Phone-Starter-Kit-for-WordPress

This starter kit helps you turn a WordPress blog into a Windows Phone application quickly and easily. By uploading a pre-written WordPress plugin and changing one line of configuration file, your Windows Phone application is able to connect to and read from your WordPress blog. All that will remain is the creative theming of your application to match your blog!
http://code.msdn.microsoft.com/Windows-Phone-Starter-Kit-26aa6c6c
25 stars 11 forks source link

Feature Request: Push Notifications #5

Open ChrisKoenig opened 13 years ago

ChrisKoenig commented 13 years ago

Enable PN when new posts are added.

tiernano commented 13 years ago

So, I am not so sure this will be an easy feature to add... You will need something on the server which will store URLs for users phones, uniquely. You will also need the blog to notify the sender when a new Comment or Post is available, then get that sender to send notification to the Given URLs... for posts, this should be easier, since all users will probably get all posts, but for comments, you may need to subscribe to a comment thread before getting them...

norgan commented 13 years ago

you'd need a web service that polls the blog for new posts then pushes the notification to the phone. I have no problem with installing a web service, it could even be hosted on azure.

norgan commented 13 years ago

http://chris.59north.com/post/Windows-Phone-7-Push-Notifications-Revisited.aspx

ChrisKoenig commented 13 years ago

Yeah - that's the rub. In trying to make this easy for people to get started with, we had to punt on a couple of feature ideas. I think having a PN infrastructure in the next rev would be awesome. Since the user is already using WordPress, perhaps we "beef up" the plugin to handle this for us, or allow the user to pick from azure or self-hosted? Part of the goal is not to require a bunch of code be written by the user, but give them the option to do so if they want to.

Either of you up for pulling something together and submitting it? I'd be happy to work with you on it, but not sure when I would get to it on my own. I've just started looking at a couple more StarterKit ideas that were sent to me as well, so hopefully we can get some community support to help grow the existing SKs...

tiernano commented 13 years ago

I like the idea of poking an rss feed for new posts or comments and then send data to a device. Was thinking of this for something myself. Will try dig out some code and post it online. Thinking of hosting this on appharbour for ease of deploy...

ChrisKoenig commented 13 years ago

I know how to do JSON - that's not the problem. If we switch to JSON however, then I believe a plugin would be required because I don't think that WordPress emits JSON by default. If there is a bug in the RSS feed, then I will be more than happy to fix it, but so far it's worked on every site I've tried. If you can send the url of your site to chris.koenig@microsoft.com I will look at debugging this tomorrow...

Chris Koenig Senior Developer Evangelist Windows Phone | Technical Evangelism | Microsoft Corporation T: 469-775-2032 M: 214-385-5616 Blog Twitter

-----Original Message----- From: norgan [mailto:reply@reply.github.com] Sent: Thursday, September 29, 2011 7:59 PM To: Chris Koenig (DPE) Subject: Re: [Windows-Phone-Starter-Kit-for-WordPress] Feature Request: Push Notifications (#5)

I have been speaking with a good developer from over at xda, he was reporting some stuff about JSON on twitter. He may be able to help with this as he has said to me that he might have some code around this. :)

Reply to this email directly or view it on GitHub: https://github.com/ChrisKoenig/Windows-Phone-Starter-Kit-for-WordPress/issues/5#issuecomment-2245138