I raised a PR and improved this problem. It works on my project. I wonder if it can be merged? https://github.com/jazzband/django-push-notifications/pull/634