-
Notifications
You must be signed in to change notification settings - Fork 102
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
Invalid field name #35
Comments
Hi @arikgelman, Sorry for the problem and the delay in replying. |
Hi! I have the same problem, sending notifications to the subscribed browser is not working. Did you solve it? |
No, still waiting for a fix |
Sorry, I could not manage time to work on this due to University and work pressure. |
@arikgelman @DaveRev I have just fixed the issue you have mentioned. Some documentation is needed for sending notification to chrome, will do this shortly. |
@arikgelman Can you check the latest master version if its still raising error? |
@safwanrahman , I am pressing the "Subscribe to Push Messaging" in chrome and I am not getting any request from the browser to approve, I can see in the database the "PushInformation object" and when I am trying to send a test message I am getting this error: Firefox still working. |
@arikgelman I have updated the documentation. Can you please check again according to it? |
@safwanrahman , Sorry, still not working, now its just hangs when I press the "Subscribe to Push Messaging" and nothing is added to database. This is the error from the Chrome console: |
Can you please put the browser console output? |
|
Can you please uninstall and reinstall directly from github? |
@safwanrahman , Still not working, same error. |
@arikgelman I have made a new release. Can you please check the latest one? |
@safwanrahman I am getting installation error:
Command "python setup.py egg_info" failed with error code 1 in |
@arikgelman What did you run? |
@safwanrahman : pip install django-webpush.zip |
@arikgelman please run |
@safwanrahman OK, I found the problem, change in the setup.py file to this:
|
@safwanrahman , Sorry, still the same error, I also added manifest.json to my site but still the same error. |
@arikgelman Can you please let me know which version of chrome you are using? |
@safwanrahman Version 65.0.3325.146 (Official Build) (64-bit) |
It looks like Opera is not working either, Firefox is working on mobile and desktop. Chrome is not working on mobile and desktop. |
@safwanrahman OK, I was able to fix the registration process in chrome, Now I was able to register with chrome but when I am trying to send a test message I am getting this error: UnauthorizedRegistrationError 400` |
Did you forget to include the credentials in the request? |
@arikgelman Have you setup |
Yes |
@safwanrahman Hi, any idea what could be the problem? |
@arikgelman I am actually investigating it. I barely use the test message. |
@safwanrahman Hi, still the same error: ` UnauthorizedRegistrationError 400` |
I will investigate this in the weekend! |
Hey @safwanrahman. I have an issue I am facing. I Kindly request for assistance |
Hi,
First I want to say thank you for this amazing package!
I am getting this error when trying to subscribe using chrome:
django.core.exceptions.FieldError: Invalid field name(s) for model SubscriptionInfo: 'expirationTime'.
I tried to remove the field 'expirationTime' from the dictionary under views:
`# We at least need the user or group to subscribe for a notification
if request.user.is_authenticated() or group_name:
# Save the subscription info with subscription data
# as the subscription data is a dictionary and its valid
print(subscription_data)
subscription_data.pop('expirationTime')
subscription = subscription_form.get_or_save(subscription_data)
web_push_form.save_or_delete(
subscription=subscription, user=request.user,
status_type=status_type, group_name=group_name)
And it worked but sending notifications to the subscribed browser is not working.
By the way Firefox is working great.
Please help,
Thanks!
The text was updated successfully, but these errors were encountered: