Jump to content


Photo
* * * * * 2 votes
Under Review

Webkit notifications integration



  • Please log in to reply
26 replies to this topic

#1 Demetrius

Demetrius

    Newbie

  • Users
  • Pip
  • 5 posts
  • LocationKiev, Ukraine

Posted 31 March 2014 - 01:30 PM

Just follow this url and play with "Click here to notify" button.

 

http://jsfiddle.net/dandv/wT26x/1/

 

Advantages over current flash notifications: browser shows it over all windows so you can receive notifications while browsing web or working with other programs.

You can use it for current notifications like "you've been kicked", "leader closed lobby" etc.

Or you can put a button like "Enable rich notifications".



#2 Mother Tereza

Mother Tereza

    Developer

  • Members
  • PipPipPipPipPip
  • 1714 posts
  • LocationRussia, Moscow

Posted 31 March 2014 - 09:58 PM

Interesting. Could you provide a full list of supported browsers?



#3 Demetrius

Demetrius

    Newbie

  • Users
  • Pip
  • 5 posts
  • LocationKiev, Ukraine

Posted 01 April 2014 - 10:09 AM

Api may be different across browsers so i would like to use some wrapper lib like this - https://github.com/t...rowsers-support .

As you can see - all modern browsers except Opera.



#4 Kenneth

Kenneth

    Advanced Member

  • Members
  • PipPipPip
  • 519 posts

Posted 01 April 2014 - 10:49 AM

Wow that's sick. I'd love to have. 



#5 Demetrius

Demetrius

    Newbie

  • Users
  • Pip
  • 5 posts
  • LocationKiev, Ukraine

Posted 02 April 2014 - 10:52 AM

Few more ideas of how it could be used:

1. Someone is trying to contact me within lobby/main chat with message "my_nickname, actual_message" - show notification.

2. I've set some filters on "/lobbies" page and there are no lobbies like that right now. Would be cool if page can notify me when lobbies will appear.



#6 Demetrius

Demetrius

    Newbie

  • Users
  • Pip
  • 5 posts
  • LocationKiev, Ukraine

Posted 29 April 2014 - 07:01 PM

ping?



#7 Kenneth

Kenneth

    Advanced Member

  • Members
  • PipPipPip
  • 519 posts

Posted 30 April 2014 - 08:29 AM

Did some fiddling with it, this is what I'd consider ideal.

 

http://jsfiddle.net/8CJZr/1/



#8 Lilith

Lilith

    Member

  • Members
  • PipPip
  • 25 posts

Steam Profile


 

Posted 25 May 2014 - 03:39 AM

Made a proof of concept of this here: https://github.com/n...f2center-notify

 

It currently uses tampermonkey or greasemonkey and overrides a couple functions (including the new addChatMsg, woo!) to hook for messages and lobby statuses


  • Computer likes this

#9 <basically deleted>

<basically deleted>

    Advanced Member

  • Users
  • PipPipPip
  • 41 posts

Steam Profile


           

Posted 01 June 2014 - 02:41 PM

Firefox, Internet explorer and many other web browsers aren't using the Webkit engine. Only Chrome(ium), Opera and Konqueror (not sure for safari).

 

I don't think it is a good idea. We are numerous to use Firefox.



#10 Lilith

Lilith

    Member

  • Members
  • PipPip
  • 25 posts

Steam Profile


 

Posted 02 June 2014 - 09:11 PM

Firefox, Internet explorer and many other web browsers aren't using the Webkit engine. Only Chrome(ium), Opera and Konqueror (not sure for safari).

 

I don't think it is a good idea. We are numerous to use Firefox.

 

Pretty sure firefox supports notifications too. Check out the script I posted above yours and let us know :)


  • <basically deleted> likes this

#11 VoidWhisperer

VoidWhisperer

    Void

  • Users
  • PipPipPip
  • 683 posts

Posted 03 June 2014 - 01:35 AM

Would definitely be cool to see this integrated into TF2C by default :o

 

Edit: It took me a day and a half to find my misspelling.



#12 <basically deleted>

<basically deleted>

    Advanced Member

  • Users
  • PipPipPip
  • 41 posts

Steam Profile


           

Posted 03 June 2014 - 06:15 AM

 

Firefox, Internet explorer and many other web browsers aren't using the Webkit engine. Only Chrome(ium), Opera and Konqueror (not sure for safari).

 

I don't think it is a good idea. We are numerous to use Firefox.

 

Pretty sure firefox supports notifications too. Check out the script I posted above yours and let us know :)

 

It seems like it works. I didn't know that Mozilla intagrated this feature to Gecko :P



#13 Lilith

Lilith

    Member

  • Members
  • PipPip
  • 25 posts

Steam Profile


 

Posted 03 June 2014 - 09:00 PM

 

 

Firefox, Internet explorer and many other web browsers aren't using the Webkit engine. Only Chrome(ium), Opera and Konqueror (not sure for safari).

 

I don't think it is a good idea. We are numerous to use Firefox.

 

Pretty sure firefox supports notifications too. Check out the script I posted above yours and let us know :)

 

It seems like it works. I didn't know that Mozilla intagrated this feature to Gecko :P

 

It's not webkit specific anymore, modern browsers support it quite well. It's also using the library mentioned above (HTML5-Desktop-Notifications) to support multiple browsers with as little effort as possible.



#14 jayserp

jayserp

    former staff

  • Members
  • PipPipPip
  • 532 posts

Posted 04 June 2014 - 02:40 AM

http://caniuse.com/#feat=notifications

Everything except IE, which no one really gives a damn about these days...

jayserp | steam


#15 <basically deleted>

<basically deleted>

    Advanced Member

  • Users
  • PipPipPip
  • 41 posts

Steam Profile


           

Posted 04 June 2014 - 06:25 AM

But you musn't ignore it. It's still popular (more since IE11), and i'm sure that many tf2center users usually browse the internet with IE (and must use another browser to play lobbies).

 

Keep a fallback solution for IE users. :)


Edited by Melionelus, 04 June 2014 - 06:27 AM.


#16 jayserp

jayserp

    former staff

  • Members
  • PipPipPip
  • 532 posts

Posted 04 June 2014 - 06:53 AM

Chrome and Firefox make up 94% of our user base, IE alone makes up 2%.

My opinion regarding IE is that developers should have just refused to support a non-W3C compliant browser. It would have died a painful death a long time ago...

jayserp | steam


#17 TheMattgician

TheMattgician

    Supreme Poster Overlord

  • Members
  • PipPipPipPipPip
  • 1210 posts

Posted 04 June 2014 - 07:13 AM

Internet Explorer had to advertise itself on YouTube because it was so bad. And it's the default browser. But that's a bit besides the point.

 

Though I personally use FireFox for TF2C use only, and surf with another browser (Safari). Some people might do so with IE.



#18 VoidWhisperer

VoidWhisperer

    Void

  • Users
  • PipPipPip
  • 683 posts

Posted 04 June 2014 - 10:27 AM

Chrome and Firefox make up 94% of our user base, IE alone makes up 2%.

My opinion regarding IE is that developers should have just refused to support a non-W3C compliant browser. It would have died a painful death a long time ago...

What makes up the other 4%? Steam browser?


  • Computer likes this

#19 R.E.M.

R.E.M.

    Member

  • Users
  • PipPipPip
  • 632 posts

Posted 04 June 2014 - 09:12 PM

 

Chrome and Firefox make up 94% of our user base, IE alone makes up 2%.

My opinion regarding IE is that developers should have just refused to support a non-W3C compliant browser. It would have died a painful death a long time ago...

What makes up the other 4%? Steam browser?

 

 

Mostly Opera I'm guessing. Ya know, mac users.


Former TF2C Moderator
Former head of suggestions and bug reports.

"Ze healing is not as revarding as ze hurting." - The Medic.

#20 VoidWhisperer

VoidWhisperer

    Void

  • Users
  • PipPipPip
  • 683 posts

Posted 04 June 2014 - 11:46 PM

 

 

Chrome and Firefox make up 94% of our user base, IE alone makes up 2%.

My opinion regarding IE is that developers should have just refused to support a non-W3C compliant browser. It would have died a painful death a long time ago...

What makes up the other 4%? Steam browser?

 

 

Mostly Opera I'm guessing. Ya know, mac users.

 

 

I know for a fact that there are atleast some steam browser people in there :P


  • Computer likes this





Also tagged with one or more of these keywords: Under Review

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users