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

I fail to receive push notifications in Firefox #6

Open
Kifsif opened this issue Jul 17, 2020 · 4 comments
Open

I fail to receive push notifications in Firefox #6

Kifsif opened this issue Jul 17, 2020 · 4 comments

Comments

@Kifsif
Copy link

Kifsif commented Jul 17, 2020

Ubuntu 18.04.4 LTS

Firefox 78.0.2 (64 bits)

The problem: Firefox doesn't receive push notifications.

Video: https://yadi.sk/d/LiUKppY0QUXC5A

Screenshot of Ubuntu settings: https://b.radikal.ru/b06/2007/e9/867678db569d.png

In other words: Chrome receives push notifications.

And if I install django-webpush (https://github.com/safwanrahman/django-webpush) Firefox receives push notifications.

But with django-infopush, it doesn't. Threre is a possibilit tha I fail myself somewhere. But could you tell me if such a problem really exist or it is my fault with settings or something?

@kilgoretrout1985
Copy link
Owner

Just checked - everything works for me on localhost + Firefox 78 + linux mint 19.

I guess this is a local issue, but I'm not sure.
(Your dev-server is working properly? Can you access in the browser http://localhost:8000/push/2020/07/17/[FILENAMEFROM THEVIDEO].jpeg ?)

Can you please do the following:

  1. Run Firefox, leave 1 tab opened (1 tab to be sure that service-worker will log to this tab).
  2. Press F12 to see console log in FF. Do not close FF.
  3. Run manage.py pushsend
  4. Post FF's console log text here.

@Kifsif
Copy link
Author

Kifsif commented Jul 21, 2020

Can you access in the browser http://localhost:8000/push/2020/07/17/[FILENAMEFROM THEVIDEO].jpeg ?)
Yes. Images are visible.

Post FF's console log text here.
Unable to subscribe to push. DOMException: User denied permission to use the Push API.

https://c.radikal.ru/c30/2007/90/1db4e2079226.png

Strange situation. I'll have to investigate where I managed to deny the permission.

Video: https://yadi.sk/i/2G6IXYAnfuQvAQ

@kilgoretrout1985
Copy link
Owner

I have 2 thoughts:

  1. ctrl+shift+del to clear FF and try one more time.

  2. DJANGO_INFOPUSH_VAPID_PUBLIC_KEY, DJANGO_INFOPUSH_VAPID_PRIVATE_KEY are configured correctly? You've obtained your own, not the example data from README?

@Kifsif
Copy link
Author

Kifsif commented Aug 1, 2020

Thank you. If possible, please, don't close this issue so far. I have not coped with this problem so far. I'll have to think more. As for the keys, it is hardly the case because everything works in Chrome. If keys were incorrect, notifications wouldn't be delivered at all, but they really are delivered in Chrome.

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

No branches or pull requests

2 participants