|
@ -82,7 +82,8 @@ try: |
|
|
vapid_claims={"sub": "mailto:info@timesafari.app"} |
|
|
vapid_claims={"sub": "mailto:info@timesafari.app"} |
|
|
) |
|
|
) |
|
|
print(f"Response: {response}") |
|
|
print(f"Response: {response}") |
|
|
print(f"Full response: {response.__dict__}") |
|
|
if response.status_code != 201: |
|
|
|
|
|
print(f"Full response: {response.__dict__}") |
|
|
# log the .reason from Apple |
|
|
# log the .reason from Apple |
|
|
# https://developer.apple.com/documentation/usernotifications/sending_web_push_notifications_in_web_apps_and_browsers#3994594 |
|
|
# https://developer.apple.com/documentation/usernotifications/sending_web_push_notifications_in_web_apps_and_browsers#3994594 |
|
|
except WebPushException as ex: |
|
|
except WebPushException as ex: |
|
|