safwanrahman / django-webpush

Web Push Notification Package for Django
GNU General Public License v3.0
362 stars 103 forks source link

Subscribe button not working #128

Open Julian7312 opened 9 months ago

Julian7312 commented 9 months ago

, I followed the steps in the README and believe i have my project setup correctly however when i click on the subscribe to push_notifications button i revive the following error in my developer tools console.

Screenshot from 2023-09-18 11-43-48

Screenshot from 2023-09-18 11-46-01

jialutu commented 9 months ago

@Julian7312 I had the same issue, it seems that there is a problem with taking the user_agent json post data. Can you try to install from my repo to see if it works? https://github.com/jialutu/django-webpush

pip install https://github.com/jialutu/django-webpush/archive/refs/heads/master.zip

jialutu commented 9 months ago

Created pull request https://github.com/safwanrahman/django-webpush/pull/130