Jump to content

Browser notifications


Recommended Posts

giphy.gif

 

I don't know how many times I've clicked the x just to close this, for it to reappear.. and reappear. Getting a bit tired of this.

Shouldn't there be a flag being set (true / false) to say whether a user has elected to have browser notifications enabled and allow an opt-in / out?

Link to comment
https://gtaforums.com/topic/940231-browser-notifications/
Share on other sites

I haven't seen that pop-up since the first time I X'd out of it. Could be a cookie issue, try removing all your cookies for GTAForums, logging back in and seeing if it sticks.

I could try that, but I'm guessing if whatever logic is still in place, after I delete my cookies, the pop-up will reappear and be added to my newly created cookie.

Will try though.

Edited by Talisman_83

Not necessarily, there could be some stuck cookie that doesn't register that you've closed the notification so it no longer appears and might be fixed by clearing your cookies. This cookie might be broken for you for example:

VTxBvNU.png 

 

So I still suggest clearing them to eliminate that as a cause. :) 

Ok, this is a bit mental..

 

Spoiler

 

1. It returned (note the time)

 

cf58ccec4f486f9b5e99c16af3ec89fe-full.pn

 

2. These were my cookies at that time, before did anything further.

 

37880d8df7cbe18e17c030ac3c63bcff-full.pn

 

3. I clicked the button to enable browser notifications. I didn't click X to close. These were my cookies after that event:

 

168b0704be8b1c147c26af12e9165af6-full.pn

 

4. I pulled the tab into a new window as I wanted to focus on some comments on the Next DLC thread.

 

5. I replaced the window as a tab and it f*cking reappeared!

 

790407b40dc68e3acb9b3aada33cb584-full.pn

 

5. Cookies (I haven't clicked to enable or to X yet

 

3c08c151f35ebc80322f3ddb963356fc-full.pn


 

 

 

 

 

PS - Checking front_front_core.js, perhaps this isn't being fired:

 

this.on(document, 'permissionDenied.notifications', this.hideNotice);

 

or possibly this piece of logic isn't correct or being fired:

 

dismissNotification: function(e) {
            if (e) {
                e.preventDefault();
            }
            var date = new Date();
            date.setDate(date.getDate() + 100);
            ips.utils.cookie.set('browserNotificationDismiss', true, date.toUTCString());
            this.scope.slideUp({
                duration: 400,
                complete: function() {
                    $(this).remove();
                }
            });
        }

Follow-up:

 

I clicked X to close, refreshed the page and this appeared:

 

ae0297835582505d6f5e89d8a99fb563-full.pn

 

Surely this setting shouldn't be in a cookie with an expiry of a week from now?

Can the cookie expiry value not be set to 01-01-9999 or something?

Or perhaps don't store it at session-level and instead, add it as a flag on your profile?

Having it as a property on your member data would make more sense.

 

Just my 2 cents

  • 2 months later...
ṼirulenⱦEqừinox
On 12/1/2019 at 5:59 PM, Talisman_83 said:

Follow-up:

 

I clicked X to close, refreshed the page and this appeared:

 

ae0297835582505d6f5e89d8a99fb563-full.pn

 

Surely this setting shouldn't be in a cookie with an expiry of a week from now?

Can the cookie expiry value not be set to 01-01-9999 or something?

Or perhaps don't store it at session-level and instead, add it as a flag on your profile?

Having it as a property on your member data would make more sense.

 

Just my 2 cents

What browser are you using?

 

I use Chrome and was given the option to Accept/Block notifications and once I selected Block it never appeared again

8 hours ago, ṼirulenⱦEqừinox said:

What browser are you using?

 

I use Chrome and was given the option to Accept/Block notifications and once I selected Block it never appeared again

 

Safari, though its happened on Chrome too.

It goes away for a while, but then returns

Edited by Talisman_83

Has it happened recently? I think IPB has pushed some more updates related to this.

44 minutes ago, Spider-Vice said:

Has it happened recently? I think IPB has pushed some more updates related to this.

Not for a while actually - I'll keep an eye on it and report back if it crops up again

Edited by Talisman_83
  • Like 1
ṼirulenⱦEqừinox
12 hours ago, Talisman_83 said:

 

Safari, though its happened on Chrome too.

It goes away for a while, but then returns

Hmm weird but at least it looked to haves stopped for you.

 

I use safari on mobile and personally never  saw that box appear even when ad-blocker is turned off and the only thing I’ve gotten on PC via Chrome is the

Allow/Block notifications

box that pops up I clicked block and never saw it again

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 0 User Currently Viewing
    0 members, 0 Anonymous, 0 Guests

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.