small reformat for readability
This commit is contained in:
10
webpush.py
10
webpush.py
@@ -68,10 +68,12 @@ if len(sys.argv) > 2:
|
|||||||
try:
|
try:
|
||||||
#print(str(subscription_info))
|
#print(str(subscription_info))
|
||||||
#sys.exit(0)
|
#sys.exit(0)
|
||||||
result = webpush(subscription_info,
|
result = webpush(
|
||||||
data,
|
subscription_info,
|
||||||
vapid_private_key=private_key_base64,
|
data,
|
||||||
vapid_claims={"sub": "mailto:info@timesafari.app"})
|
vapid_private_key=private_key_base64,
|
||||||
|
vapid_claims={"sub": "mailto:info@timesafari.app"}
|
||||||
|
)
|
||||||
print(f"Result from remote service: {result}")
|
print(f"Result from remote service: {result}")
|
||||||
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user