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

How to register for webpush? #647

Closed
yandiro opened this issue Jan 23, 2022 · 4 comments
Closed

How to register for webpush? #647

yandiro opened this issue Jan 23, 2022 · 4 comments

Comments

@yandiro
Copy link

yandiro commented Jan 23, 2022

Hello! Congrats and thanks for doing this app, by the way!

I have to say, thought, that it is a bit confusing on how to register a browser to get a notification.

I followed Firebase's guide on how to get a registration id for the browser and it worked fine, I could even send a notification to my test web app via Firebase's notification test.

I tried to create a device on django_push_notifications with this same registration ID, and I could not, because it asks for 2 more fields (User public encryption key and User auth secret), of which the documentation makes no mentions (or it is very hard to find). If I try to use this same registration id created for a browser on the FCM / GCM, I get an error (INVALID_KEY_TYPE).

Is there any documentation on how to get this working on a browser?

Also, an overall clearer documentation would be much appreciated (I did read some of the issues people posted) by the community.

Regards!!

@shawnngtq
Copy link

I don't find tutorial for this library. Would love to use it though.

Anyone can share URLs? For beginners who never work with APNS, FCM/GCM, WNS and WebPush.

@yandiro
Copy link
Author

yandiro commented May 31, 2022

@shawnngtq I believe if you read Google's turorial for the Python library, it will help.
https://firebase.google.com/docs/reference/admin/python/firebase_admin.messaging

And also, the readme file of this repo, of course.

@blighj
Copy link
Contributor

blighj commented Nov 21, 2022

@shawnngtq @yandiro Any feedback on this PR, #674, specfically this file, which aims to explain wepush configuration
https://github.com/jazzband/django-push-notifications/blob/4fb64be08a5e9d4b9275e9632426d022d5a84a70/docs/WebPush.rst

@azmeuk azmeuk added the webpush label Aug 18, 2023
@azmeuk
Copy link
Member

azmeuk commented Oct 29, 2023

Fixed by #674

@azmeuk azmeuk closed this as completed Oct 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants