Site_Feedback

Topic   browser notifications

bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
1-Jun-2019(#1)
I just added this page:

https://gametz.com/OffSiteNotifications.html

If you click the "enable" button near the top, it will pop-up and you can then click "Allow. Then it should start sending notifications to the web browser you did that with. You can set it up for more than one browser, if you like. These are similar to app notifications, if you're familiar with that. I'm using the same system as I use for the Android app (Firebase Cloud Messaging or FCM).

The page also lists all the offsite notifications the sites knows about for you, including if you have an app setup to send notifications (e.g. Android or iOS). It calls browser notifications "Web Push" in that list.

There's also a Test button at the bottom that tries to send a test message to all the listed "Existing Offsite Notifications". Note that this doesn't seem to always work and it will open a new tab to your user page to do it because there's an odd quirk that prevents notifications from happening when the page that initiated them is in focus. It will also send the test to your phone if you have the app setup for that.

Consider this experimental and somewhat flaky. I was happy to get something working, but I'm finding it doesn't work so well. For example, the notifications only happen if your browser is running. So, it's not as thorough as the app tends to be with a phone. If your computer is off/sleeping, you'll never see a notification. That's intended behavior as far as I can tell. There doesn't seem to be a queue. The docs for this seem to be in flux, so it's really hard to tell what's going on. Most stuff seems out-of-date, etc.

I've tested it with Win10/Chrome, Win10/FireFox, Chromebook, and it even worked with chrome on my Android phone. It did not work for ios/Chrome (notifications are not supported there).

Let me know how it goes... if it doesn't work, there may not be much I can do about it. But, I'll listen.
paul6743
Gold Good Trader
* 1-Jun-2019(#2)
After enabling notifications, the "Send Test Notification Now" just seems to open my profile in a new tab. I'm not sure if that's intended or not. Edit: I'm on Windows 8.1 and this was using both Firefox and Chromium.
John
GameTZ Subscriber GameTZ Full Moderator 400 Trade Quintuple Gold Good Trader Gold Global Trader (13) Secret Santa
1-Jun-2019(#3)
For me, it opens in a new tab and then I get the test notification. yes
paul6743
Gold Good Trader
1-Jun-2019(#4)
John wrote:
> For me, it opens in a new tab and then I get the test notification. yes
>

What OS/browser are you using?
John
GameTZ Subscriber GameTZ Full Moderator 400 Trade Quintuple Gold Good Trader Gold Global Trader (13) Secret Santa
1-Jun-2019(#5)
Windows 10 / Chrome.
John
GameTZ Subscriber GameTZ Full Moderator 400 Trade Quintuple Gold Good Trader Gold Global Trader (13) Secret Santa
1-Jun-2019(#6)
When you clicked on the button to activate it, did your browser ask if you'd accept notifications from the site?
paul6743
Gold Good Trader
1-Jun-2019(#7)
John wrote:
> When you clicked on the button to activate it, did your browser ask if you'd accept
> notifications from the site?

Yeah that comes up, but the Test button just opens a new tab. Got out my laptop to test it on Windows 10 and Microsoft Edge browser. Still doesn't pop up.
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
1-Jun-2019(#8)
@paul6743 (mentioning partly just to give you a notification)

I can see on my end that the system did get the token it needs to send messages to both of you. So, that indicates that the Allow pop-up went through fine.

I had another person tell me the test didn't work. It may just be a bad test. Or... well, I'm not sure, but as I worked on it, I sometimes seemed to get into a state where it just acted like it was in the mode where it thinks I'm looking at the notification page so it doesn't send anything. Closing the browser and/or restarting, etc may clear that.

Anyway, this is harmless as far as I know. So, you might as well leave it on and see if it puts out anything for you (like a real pm, offer, mention, etc.) If not, no great loss.

Also, I spend some time this morning trying to make the notification clickable (e.g. if it's for a pm, you should be able to click it to go to the pm page). But, I could not get that to work.
paul6743
Gold Good Trader
* 1-Jun-2019(#9)
When you mentioned me, it did come up in 1 of my 3 browsers that I've enabled it for. Not sure if the other 2 failed or it's only designed to notify one. Thanks though, I'll keep playing with it
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
* 1-Jun-2019(#10)
It's also worth mentioning that if someone goes into browser settings and removes or blocks the notification for gametz.com, the next message that goes out will fail and I remove the token for it in that case (so it would clear from that list and never try it again).

I think these notifications are meant for a "web app" which isn't really what the gametz website is. For an app, if something happens in the app and you have the app on your screen, it generally will not send a notification as it assumes the app will indicate it directly. So, something may be interpreting this for a website, if you are viewing the site, it won't show the notification. The thing I do where it makes a new tab and put you on your user page tries to circumvent this (maybe it doesn't work in all cases, though) If you're looking at another site and even if gametz.com is in an inactive tab, it should show the notification. This may also be something about the FCM system I'm using (it may be making this web app assumption).
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
1-Jun-2019(#11)
I think I figured out how to have the notification pop-up clickable (will take you to the relevant page [pm,offer,mentions]).

In the process of testing this, I noticed it just didn't work in cases where I thought it would. I still don't quite understand why, though.
MrBean
GameTZ Gold Subscriber 300 Trade Quintuple Gold Good Trader Gold Global Trader (7) Has Written 1 Review
1-Jun-2019(#12)
Very cool, thank you Bill!
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
2-Jun-2019(#13)
Well, I realize it doesn't always work for everyone, but I just had a case of it working very nicely for me. Reading some other website, I got a notification for a pm here. I clicked it and it took me to the pm. Nice!
Grenadier
GameTZ Subscriber GameTZ Full Moderator Triple Gold Good Trader Has Written 3 Reviews
3-Jun-2019(#14)
Will this get linked on My Account or Sub Options, so we can find it again in the future?
bill
GameTZ Subscriber GameTZ Full Moderator 600 Trade Quintuple Gold Good Trader Gold Global Trader (15) Has Written 26 Reviews
3-Jun-2019(#15)
It is linked from any settings page in the sub-menu (last choice "OffSite Notifications").
Grenadier
GameTZ Subscriber GameTZ Full Moderator Triple Gold Good Trader Has Written 3 Reviews
* 4-Jun-2019(#16)
What about on the Old Layout?

Never mind, I see it now.

Topic   browser notifications