You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

[Android] CodeWalrus Post Notifier

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

0
b/[Completed] CodeWalrus Tools (Web/Android/PC) publicado por u/Snektron April 16, 2015, 01:34:08 PM
For our computer science class we (@brentmaas, @TheCoder1998 and me) need to do a project. We had
to come up with a project ourselves. The first thing i did was send a mail to DJ, since i saw people would like a post notifier a while before.
Since we were quite busy at the time, we decided to delay developement untill we had some free time, which is about now.
We have to keep a log and everything too, so we'll be using this topic to notify of developement updates.

Language:
Since the default Android programming language is Java, and we can all code in Java (well, TheCoder is still learning :P), we'll
be using that to make the application. We will be using the Android SDK ofcourse.

Planned features:
- Service that sends a push notification when a new post is made.
- Clientside only. it will be checking the SMF RSS update feed and parsing data from there.
   (The SMF RSS feed gives post content too, but that might use too much data. If someone knows how to remove that data in the http request, or if
   a site maintainer can make a special feed for us, that would be nice :))
a custom smf mod that returns some data upon requesting an url
- Toggle service active.
- Toggle 3g update checking.
- Algorithm to do more checks when there is intense posting.
- Setting for time between checks
- Activity that displays latest X posts
- Setting to ignore some tags/topics/subforums

Release:
The app will be released on the play store, since i have an account anyways.
Ofcourse, the app will be free. Also we'll probably post it on a new topic when it's finished.

Further info
This app will sadly not be available for iOS, since none of us have a mac to develop on or an app store license.
Windows version is not ruled out but that's not part of the project, so that will maybe come later. (also if we do it, it's maybe better to do a chrome plugin).

If you have any suggestions or ideas, please leave them on this topic :)
Last Edit: June 01, 2015, 04:25:53 PM by Cumred_Snektron
Inicia sesión o crea una cuenta para dejar un comentario
u/Duke "Tape" Eiyeron April 16, 2015, 02:02:59 PM
Have fun with such kinds of projects. also try to make a passive notification reader, else batteries will be drown into obvlivion.
u/Yuki April 16, 2015, 03:24:59 PM
I'm tempted to suggest GCM but that would require me to write a GCM server mod and store every user's ID to send them the same message to everyone individually.
u/Snektron April 16, 2015, 03:35:04 PM
hm. I havent heard about GCM before, but it looks quite handy. Else we can write our own lightweight server to connect to for updates, and the server can search through the rss feed or something. Is it possible to run a notify server on CW's servers?
u/Yuki April 16, 2015, 03:39:32 PM
Sure. The best would be to make SMF send a message to the notification server directly when someone posts, just like what it's doing with the IRC bot.
u/Snektron April 16, 2015, 03:43:05 PM
Yes that would be ideal. How would SMF be sending the message though?
u/Dream of Omnimaga April 16, 2015, 03:52:19 PM
Juju's last idea would be ideal, but of course it depends of how reliable such inter-server connection would be and we would have to make sure that the app doesn't take too many resources. Also, if the server that the app uses is down, then it needs to not slow down forum posting.

Anyway a post notifier would definitively rule if it doesn't spam the server with requests or fake page views. Good luck in any case! :)

What I am thinking is that when a new post is made, then Walrified should also store the topic title and URL in a standalone file or database element on the server and the notification app would check that log instead of the site's RSS. That way, it won't rack up forum page views and it would be smaller in size (it could maybe only keep the last 5 replies on record).
Last Edit: April 16, 2015, 03:54:46 PM by DJ Omnimaga
u/Yuki April 16, 2015, 04:09:00 PM
Quote from: Cumred_Snektron on April 16, 2015, 03:43:05 PM
Yes that would be ideal. How would SMF be sending the message though?
The IRC bot uses UDP, with SMF acting as a client.
u/Duke "Tape" Eiyeron April 16, 2015, 04:13:59 PM
That would be useful indeed to get notifications from SMF, hyes.
u/Snektron April 16, 2015, 04:44:46 PM
Quote from: Juju on April 16, 2015, 04:09:00 PM
Quote from: Cumred_Snektron on April 16, 2015, 03:43:05 PM
Yes that would be ideal. How would SMF be sending the message though?
The IRC bot uses UDP, with SMF acting as a client.
Ah okay. That shouldn't be too hard to implement.
u/Yuki April 16, 2015, 05:04:43 PM
You would have to implement a UDP server and process whatever it recieves. Yeah, pretty easy.
u/Dream of Omnimaga April 16, 2015, 05:31:49 PM
Yeah the thing is just make sure that you don't reload the SMF RSS feed or any forum page to check if there are new posts. If, for example, 10 members use the application and the app checks the RSS feed every 10 second for new posts, then the Forum statistic page will show 864000 extra page views everyday and I'm unsure if we want fake stats. Omnimaga had a similar problem in March 2014 when they tried ENotify, in addition to many errors. Not sure what is an UDP server but I'll check I guess.
u/Snektron April 16, 2015, 06:55:32 PM
UDP is a protocol. It just means SMF sends a packet to the notify server with 'hey - theres a new post! its {post data}" or something :P
u/Dream of Omnimaga April 16, 2015, 07:27:50 PM
Ah right, such protocol would work better then. Would it be better to host it on our server in case yours or your URL go down in the future? (which just happened to your URL >.<)

Also yeeah there needs to be a timeout feature so that if after 3 seconds it still cannot register a connection, then it sends the post to the forums and IRC and just skips your app. Otherwise I remember that at first, when Omni used a similar way to notify of new posts on IRC, it would wait until the forums can register a connection to the IRC bot and we could no longer post at all if the bot was down  >.<
Last Edit: April 16, 2015, 07:29:36 PM by DJ Omnimaga
u/Snektron April 16, 2015, 07:31:23 PM
Yeah that's why i asked it, and why we initially planned to have it clientside only
Start a Discussion

b/[Completed] CodeWalrus Tools (Web/Android/PC)

The sub-forum for WalrusIRC, an IRC-linked shoutbox, as well as DarkestEx and Cumred_Snektron's post notifiers. Other major site browsing tools might be discussed here when applicable.

17
Topics
Explore Board
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal