Java-Gaming.org Hi !
Featured games (81)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Push notification for "message on this thread"  (Read 2536 times)
0 Members and 1 Guest are viewing this topic.
Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Posted 2012-08-31 13:33:47 »

I'm reading a specific Thread, then it comes a push notification:

"There is 1 post just in! (new message in this thread!)"

For me it makes more sense when you click it, to go straight to the new message on this thread.
When there's only 1 new message, and it's on the thread I'm reading, I always click the push notification expecting it to go to message itself, instead of the "unread posts since last visit."

Makes sense to you (Riven specially)?

Offline Roquen
« Reply #1 - Posted 2012-08-31 13:42:22 »

Is your browser's refresh button and/or icon broken? Smiley
Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 48
Projects: 4
Exp: 8 years



« Reply #2 - Posted 2012-08-31 13:43:43 »

Is your browser's refresh button and/or icon broken? Smiley
No, but it wont go STRAIGHT to the message! I will have to scroll and look for it! That's unnaceptable.

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 816
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #3 - Posted 2012-08-31 14:50:24 »

A real programmer doesn't use his mouse. Hit that F5 + END and be amazed by the results!


I might actually make the push notification a tad more user friendly - we'll see, sooner or later.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline Roquen
« Reply #4 - Posted 2012-08-31 14:52:01 »

What's a mouse?
Offline jonjava
« Reply #5 - Posted 2012-08-31 20:03:36 »

What's the difference between push notification and the client asking the server if there's a new post?

I mean if it's pushed it means the client has to be listening to the server 24/7 to know exactly when something has arrived and by delayed checks (pulls) (say every 5 mins) you only connect to the server every 5 mins.

What I don't get is how does push notification reduce increase battery life on mobiles - PC don't matter since you can spare the electricity of being constantly connected to the server.

/Offtopic

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 816
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #6 - Posted 2012-08-31 20:15:25 »

Push notifications do not reduce battery life. Where did you read that? They reduce power consumption.

With pushing, you send a few bytes as a request, and potentially hours later, you get a few bytes back in the response.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline jonjava
« Reply #7 - Posted 2012-09-01 10:16:19 »

So what's the difference between pushing and pulling?

Isn't pushing that the device stays connected to the server listening for new data. While pulling has the device reconnect every once in a while to request for new data?

To me pushing should use more power and thus reduce battery life aka Staying connected 24/7 (pushing) VS connecting once in a while (pulling) - but then you read everywhere the opposite is true. What the hell is going on? :/

[EDIT]: Also notice my u-turn typo in previous post! :L

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 816
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #8 - Posted 2012-09-01 14:21:47 »

The difference is that socket.getInputSteam().read(byte[]) takes just as much CPU cycles as Thread.sleep(ms), as in: none.

Further, with polling (especially with email) the mail-client has to traverse some directories on the client which involves disk I/O and CPU usage. Just check your desktop mail-client to see how long it takes to check a dozen email-accounts. It might take about 1-2sec per account.

With push-notification (which is part of IMAP btw) you simply do nothing at all, you let the CPU sleep, until the thread that initiated the socket-read is interrupted by the network stack of the OS.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline jonjava
« Reply #9 - Posted 2012-09-02 03:06:18 »

Mmm. Makes sense, thank you.

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Longarmx (36 views)
2014-10-17 03:59:02

Norakomi (28 views)
2014-10-16 15:22:06

Norakomi (24 views)
2014-10-16 15:20:20

lcass (27 views)
2014-10-15 16:18:58

TehJavaDev (52 views)
2014-10-14 00:39:48

TehJavaDev (54 views)
2014-10-14 00:35:47

TehJavaDev (42 views)
2014-10-14 00:32:37

BurntPizza (63 views)
2014-10-11 23:24:42

BurntPizza (36 views)
2014-10-11 23:10:45

BurntPizza (77 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!