September 21, 2019, 11:43:21 am

News:

Juju thinks he's so clever by putting funny stuff here



Alternatively, join us on Discord.

[Android] CodeWalrus Post Notifier

Started by Snektron, April 16, 2015, 01:34:08 pm

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Juju

UDP is connectionless, so SMF don't care if the message arrived to its destination, the packet got lost, the server is off or whatever, and won't block until some sort of confirmation, that's why I chose it over TCP (which makes sure the packet arrived to destination in the right order and stuff). And when the server is 127.0.0.1 I don't think there's packet loss.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

Duke "Tape" Eiyeron

This and UDP doesn't care abut which packet comes before another. There aren't any attempts to get the original flow at client side.

DJ Omnimaga

That's good then. Good luck Cumred for the project and to whoever is involved in the SMF side of the notifier. :)

Snektron

May 09, 2015, 12:03:45 pm #18 Last Edit: May 09, 2015, 12:12:27 pm by Cumred_Snektron
Hello! It's been a while since we announced this project and yesterday i finally decided to start coding.
I've implemented android's recyclerview so it looks nice with not too much effort. Also i added a http requester and a xml parser
so it can display posts.

As you can see, nothing is done about the raw HTML yet. Also there is not yet a menubar.
The menubar will also contain a fancy side menu for options and such. Also there is not yet a notification service.
The source is also on github: https://github.com/QuantumInfinity/CodeWalr.us-Post-Notifier
Let me know if you like it / have suggestions ;)

Also since this is a project for cw... *cough* featured project *cough cough* :P
But seriously maybe thats a good idea.
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DJ Omnimaga

Looks very good so far! Will there be options to open the browser to view the thread? This would be a must I think. And yeah I considered a sub-forum for this, although it depends if you plan to update this more in the future once it's released to public. That would make MinePrime (next update that adds crafting) and the post notifier the next two sub-forum additions.

Snektron

Quote from: DJ Omnimaga on May 09, 2015, 04:22:47 pm
Looks very good so far!


Thanks! :D

Quote from: DJ Omnimaga on May 09, 2015, 04:22:47 pm
Will there be options to open the browser to view the thread?


Yeah i was already planning to add that, but i don't know if i wrote it under the features

Quote from: DJ Omnimaga on May 09, 2015, 04:22:47 pmAnd yeah I considered a sub-forum for this, although it depends if you plan to update this more in the future once it's released to public. That would make MinePrime (next update that adds crafting) and the post notifier the next two sub-forum additions.


That depends on how many there is to update. I will at least keep it maintained and add features if necissary :)
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Streetwalrus

Sounds fun. With the new mobile theme it will make using the forum on a phone pretty neat. :3

Juju

That looks pretty nice Cumred. I'm definitely checking it out. And if you want a server/mod to run on CW you can always ask me.
Read Zarmina!
YUKI-CHAAAANNNN
In the beginning there was walrii. In the end there will be walrii. All hail our supreme leader :walrii: --Snektron



if you wanna throw money at me and/or CodeWalrus monthly it's here

Snektron

Thanks :) And yeah i'm already developing a mod :P
Currently the mod adds one action feature, "walrifier". It returns the id of the latest message. The app will then check
if the latest ID is the same as the new ID and if not, request the full feed from the ".xml" action. Though it might be better to strip it down and make my own feed via a subaction (if im making a mod anyway). I'm also thinking of making a subaction where you supply the last checked ID and it returns a list of ID's/posts since the supplied ID (with a limit ofcourse). This way doesn't require a server, while its probably just as data-efficient (and is probably lighter for the server too). I wan't the least amount of data as possible, so it can also run on mobile data without consuming a lot of data. This way it probably wouldn't even be a Mb per day, which is a quite acceptable amount i'd say.
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Streetwalrus

Hmmm nice. I'm not having too many problems with data usage but again I have a 3GB plan. Not everyone does tho.

Snektron

Yeah i was using 200MB before, now i have 1GB. But for the people who are having no/low data, i'll just add a option :)
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


CKH4

This looks very cool. Maybe you could add an option to fetch irc too? But then it'd be like wirc for android sort of.


DarkestEx

@Cumred_Snektron, why don't you use a PHP page to preprocess the feed online, where you have unlimited traffic and then send only n-items to the client.
Or tell the client, how many messages happened since a specific id and then fetch only those.

Snektron

Legends say if you spam more than DJ Omnimaga, you will become a walrus...


DarkestEx

Quote from: Cumred_Snektron on May 09, 2015, 10:26:00 pm
Yeah thats what im going to do :)

Ah okay.
I already wrote a good part of that actually before I posted that reply.
You can check it out soon.

Powered by EzPortal