django-webpush icon indicating copy to clipboard operation
django-webpush copied to clipboard

Subscribe button allways show "subscribe" with custom user model

Open afferenslucem opened this issue 5 years ago • 2 comments

When I use custom user model I see webpush_button only with "Subscribe to notifications" when I subscribed I can receive notifications, but button's text does not change

afferenslucem avatar Jun 11 '19 05:06 afferenslucem

It actually does not depend on user. It depends on the browser. So if you are same user but using different browser, You will see subscribe button

safwanrahman avatar Jul 20 '19 00:07 safwanrahman

Same for me. Maybe I'm missing something but I could not find code responsible for initial button state depending on subscription. I've tinkered a bit here, which is replacement for webpush.js. Does the job for me, but needs more work.

Enweave avatar Sep 06 '19 00:09 Enweave