Hello! We apologize it has been a littler longer since our last post. Team Newspaper hit a standstill in progress due to our individual application projects due week 8 and also waiting to hear back form Augustana's ITS department.
We finally were able to talk to the Observers web developer in the ITS department on Wednesday about implementing the push notification plug-in. However, it turns out the plug-in we found requires a newer version of PHP than what the server the website is on has. Hitting another wall we had to go back and research other ways to implement the push notifications. The reason we feel push notifications is so important is because it is really the true distinction between our app versus the website.
We had the opportunity on Friday to sit down with the ITS web developer and discuss other options and how he can help. He was able to give us access to the database that stores all the website information and suggested us writing a script to find when a new story was published to send out a notification. While this seemed like our best/only option we didn't feel it would be feasible since it would require constantly or semi-constantly running the script to see if a new story was published. It wasn't the most elegant approach.
We decided to do a little more digging and were able to find another plug-in that works on older version of PHP, but without administrative access to the website and the limited communication with the ITS department we couldn't test if this new plug-in would work. Therefore, Dr. Stonedahl decided to create our own dummy WordPress website. Having the dummy site allows us to test the plug-in and PHP code as often as we would like without worrying about breaking the site.
Team Newspaper member, Andrew, was able to successfully get push notifications working using the dummy site! The way this works is our app will send it's individual device registration token to the WordPress website. We are currently using SharedPreferences to keep track of whether or not the app has already been registered. Whenever a post is made, there's some PHP code that will be called and uses GCM to send a notification to every app.
Now since we know the plug-in words we are hoping to get it installed into the Observer's WordPress site! Only one week left!
No comments:
Post a Comment