Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Push notifications broken in brave-core #2301

Closed
capouch opened this issue Nov 29, 2018 · 39 comments · Fixed by brave/brave-core#3390
Closed

Push notifications broken in brave-core #2301

capouch opened this issue Nov 29, 2018 · 39 comments · Fixed by brave/brave-core#3390

Comments

@capouch
Copy link

capouch commented Nov 29, 2018

Description

HTML5 push notifications, which were previously working, no longer function in the brave-core milieu.

Test Plan

Specified here: brave/brave-core#3390

Steps to Reproduce

  1. Go to this site: https://serviceworke.rs/push-payload_demo.html
  2. Choose "Allow" when presented with push notification popup
  3. Enter message and request notification.

Actual result:

Popup posts, and site is registered with browser as "allowed" to send notifications. But nothing happens when the "Request sending . . . " button is pushed.

Expected result:

Browser should respond with a notification popup

Reproduces how often:

Always.

Brave version (brave://version info)

0.57.8

Reproducible on current release:

  • Does it reproduce on brave-browser dev/beta builds?
    Yes.

Website problems only:

  • Does the issue resolve itself when disabling Brave Shields?
    No.
  • Is the issue reproducible on the latest version of Chrome?
    Works just fine in latest version of Chrome Beta.

Additional Information

Subscription object is never sent to backend for processing, as verified with two sites I control which both are able to successfully send push notifications to instances of Chrome.

@bbondy bbondy added this to the 1.x Backlog milestone Dec 2, 2018
@rebron rebron added this to Untriaged Backlog in General Dec 4, 2018
@rebron rebron added the needs-more-info The report requires more detail before we can decide what to do with this issue. label Dec 4, 2018
@rebron
Copy link
Collaborator

rebron commented Dec 4, 2018

@srirambv can you investigate maybe with a different HTML 5 push notification test suite? Need more info on this one.

@rebron rebron added needs-investigation A bug not 100% confirmed/fixed and removed needs-more-info The report requires more detail before we can decide what to do with this issue. labels Dec 5, 2018
@Brave-Matt
Copy link

@Brave-Matt
Copy link

May also be related to #2362

@rebron rebron moved this from Untriaged Backlog to Needs Info in General Jan 15, 2019
@rebron rebron removed the needs-investigation A bug not 100% confirmed/fixed label Jan 15, 2019
@rebron rebron moved this from Needs Info to Untriaged Backlog in General Jan 15, 2019
@rebron rebron added the priority/P3 The next thing for us to work on. It'll ride the trains. label Jan 15, 2019
@rebron rebron moved this from Untriaged Backlog to P3, P4, & P5 Backlog in General Jan 15, 2019
@rebron rebron modified the milestone: 1.x Backlog Feb 7, 2019
@rebron rebron moved this from P4 Backlog to P3 Backlog in General Mar 14, 2019
@felschr
Copy link

felschr commented Mar 18, 2019

Looks like the issue I mentioned in the following comment over here is related to this:
#2143 (comment)
The promise from pushManager.subscribe is stuck in status pending.

@Indjov
Copy link

Indjov commented Mar 20, 2019

Any news ? When we see the update witch will fix that notification problem?

@stefanmaric
Copy link

I'm also seeing that after allowing notifications, and maybe a refresh or something, the site settings says notifications are enabled but registration.pushManager.getSubscription() resolves null.

@ACheshirov
Copy link

Ya, this bug is very annoying. I hope they will fix it soon. I was struggling to enable Facebook notifications and now I understand why it was unsuccessful.

@snowbound
Copy link

The main reason why I went back to Chrome after trying Brave for a month back in Nov/Dec last year and now MS has entered the chromium fray

@Indjov
Copy link

Indjov commented Apr 10, 2019

@rebron , any info about that bug?

@ishinome
Copy link

@rebron I would also like to confirm that these notifications are faulty. For example site: d2jsp.org wont register push notifications with brave, but does it on chrome.

@WorldLanguages
Copy link

+1
Please work on this Brave team. I want to receive web push notifications from Twitter, Youtube, etc.

@nexxai
Copy link

nexxai commented Jul 28, 2019

@rebron Any update on this? I love the idea of this browser but broken Facebook and Twitter notifications are kind of a deal breaker.

@snowbound
Copy link

Yup with me its YouTube notifications have to work. The reason why I was one of the people who reported this issue back in Dec 2018. Using Firefox right now on Win10.

@rebron
Copy link
Collaborator

rebron commented Jul 31, 2019

@nexxai Dependent on #4431 Can't give you a timeline on the fix but we have this on our board to address.

@nexxai
Copy link

nexxai commented Jul 31, 2019

@rebron Can I humbly request that this have a due date set prior to Google's Declarative Web Request/Manifest v3 enabling (I believe this is expected in October)? I imagine that there will be many people looking to switch around that time (when ad blockers like uBlock Origin will no longer work, at least in their current form), and so the easier the transition for them, the more likely they'll be to choose Brave over something like Firefox or Opera.

@WorldLanguages
Copy link

Finally

@jumde
Copy link
Contributor

jumde commented Oct 4, 2019

Fix for this issue enables Push notifications in Brave, but push notifications on some sites including Youtube, Twitter might not work because of an upstream issue: https://bugs.chromium.org/p/chromium/issues/detail?id=1011244 - we are working with the chromium team to fix this. We are using issue #2362 to track the fix. Stay tuned!

@jumde
Copy link
Contributor

jumde commented Oct 4, 2019

Is this going to be fixed in Brave for Android as well?

cc: @anthonypkeane @SergeyZhukovsky

@LaurenWags
Copy link
Member

LaurenWags commented Nov 20, 2019

Verified passed with

Brave 1.1.5 Chromium: 78.0.3904.97 (Official Build) beta (64-bit)
Revision 021b9028c246d820be17a10e5b393ee90f41375e-refs/branch-heads/3904@{#859}
OS macOS Version 10.13.6 (Build 17G5019)

Screen Shot 2019-11-20 at 1 43 20 PM

Screen Shot 2019-11-20 at 1 43 27 PM

PR3390-clean profile

Verification passed on

Brave 1.1.7 Chromium: 78.0.3904.108 (Official Build) beta (64-bit)
Revision 4b26898a39ee037623a72fcfb77279fce0e7d648-refs/branch-heads/3904@{#889}
OS Windows 10 OS Version 1803 (Build 17134.1006)

image

Verification passed on

Brave 1.1.5 Chromium: 78.0.3904.97 (Official Build) beta (64-bit)
Revision 021b9028c246d820be17a10e5b393ee90f41375e-refs/branch-heads/3904@{#859}
OS Ubuntu 18.04 LTS

@snowbound
Copy link

snowbound commented Nov 21, 2019 via email

@GeetaSarvadnya
Copy link

@snowbound #2301 (comment)

@capouch
Copy link
Author

capouch commented Nov 28, 2019

OMG it looks like we're broken again in 1.1.11!! I'll revert ASAP and re-test, but just tested with several sites that worked OK last week. None work now.


Update: There is a problem, but it turns out to not be in the push notification functionality per se. I am now on a different machine, and I noticed that the "Use Google Services for Push Notifications" was turned off somehow. I turned it on, and a "RELAUNCH" button comes up next to the setting. I hit it, machine relaunched, but notifications still didn't work. Then I sent the message above. Slackware 14.2-current (recent install)

After banging my head on the wall and reverting all the way back to 1.1.1, which I knew worked OK, it still didn't work!! Went to settings, and I see the "Use Google" is still turned off!! I turned it on, relaunched, looked at settings it it still wan't on. So I turned it on, manually exited via the menu, and now all is well. . . . .

@neerajsrivastava
Copy link

I noticed that the "Use Google Services for Push Notifications" is turned off by default on Brave (Version 1.1.20 Chromium: 79.0.3945.74 (Official Build) (64-bit)).

Is it mandatory to enable it for Push Notifications or there is any other way to send Push Notifications without enabling this setting?
Push Notifications does not work if I do not enable this settings and throws below error .
We can check it on URL https://gauntface.github.io/simple-push-demo/

"Ooops a Problem Occurred
AbortError: Registration failed - push service not available"

@bsclifton
Copy link
Member

@neerajsrivastava it's required to enable that setting (as far as I know), as there is a service call being made to GCM / FCM ☹️

@totomaze
Copy link

totomaze commented Jan 2, 2020

Where is the option to enable google services ?
Brave is up to date
Version 0.70.123 Chromium: 78.0.3904.97 (Official Build) (64-bit)

I can't see any option in chrome://settings/privacy

Thanks

@snowbound
Copy link

"Use Google Services for Push Messaging" in Windows Version 1.1.23 Chromium: 79.0.3945.88 (Official Build) (64-bit)

@nexxai
Copy link

nexxai commented Jan 2, 2020

When I try to enable "Use Google Services for Push Messaging" in the Advanced settings section, it prompts me to relaunch, but as soon as I do, the option is disabled again.

Screen Shot 2020-01-01 at 9 13 55 PM

After relaunching:

Screen Shot 2020-01-01 at 9 16 31 PM

Version 1.1.23 Chromium: 79.0.3945.88 (Official Build) (64-bit)
MacOS 10.15.2

@bsclifton
Copy link
Member

bsclifton commented Jan 2, 2020

@totomaze you're several versions behind. Can you please update? (current version is 1.1.23 as @snowbound called out above)

@nexxai I believe we fixed that bug, but the fix may not be live yet (cc: @jumde). Instead of clicking the relaunch helper button, can you try just closing Brave manually?

@totomaze
Copy link

totomaze commented Jan 2, 2020

image
I guess the up to date status is not working.

I downloaded the latest version from the website and I can see the option now . Thanks

I ll start promoting the brave browser in my app when a solution enabled by default will be present :)

@nexxai
Copy link

nexxai commented Jan 2, 2020

@nexxai I believe we fixed that bug, but the fix may not be live yet (cc: @jumde). Instead of clicking the relaunch helper button, can you try just closing Brave manually?

This seems to have done the trick. After just closing the browser with CMD-Q and re-opening, the toggle stayed enabled. Thanks!

@jumde
Copy link
Contributor

jumde commented Jan 2, 2020

@nexxai @bsclifton - Yes this issue is fixed, but is not yet part of the stable release - brave/brave-core#4042

@jshan17
Copy link

jshan17 commented Mar 20, 2020

Hello I have Google push notifcations enabled AND I have Notifcations settings set to allow sites to ask. Only popular sites like Facebook and Trading View are successfully asking for notifications when I visit them, then their push notifications actually send. But news sites like Bitcoinist.com and Youtube are not asking. Does anyone know how to enable website push notifications? I’ve already gone to settings and selected, Allow Sites to ask for permission, but my crypto news sites won’t ask for permission to send notifications. I'm using Windows 10 -Brave is up to date: Version 1.5.113 Chromium: 80.0.3987.149 (Official Build) (64-bit) - just updated today. But I cannot receive notifications from sites like Youtube, Twitter, or Crypto news sites. I've seen many different threads on this topic but none have solved my issue. I've also been able to receive notifications from testing sites listed, but still no improvement. Help??

@SebasG22
Copy link

SebasG22 commented Jun 19, 2021

When I try to enable "Use Google Services for Push Messaging" in the Advanced settings section, it prompts me to relaunch, but as soon as I do, the option is disabled again.

Screen Shot 2020-01-01 at 9 13 55 PM

After relaunching:

Screen Shot 2020-01-01 at 9 16 31 PM

Version 1.1.23 Chromium: 79.0.3945.88 (Official Build) (64-bit)
MacOS 10.15.2

Nice solution. This works for me. 🚀 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.