|
@@ -98,7 +98,7 @@ class Test(View):
|
|
print(message_body)
|
|
print(message_body)
|
|
if push_type:
|
|
if push_type:
|
|
result = push_service.notify_single_device(registration_id=registration_id, message_title=message_title,
|
|
result = push_service.notify_single_device(registration_id=registration_id, message_title=message_title,
|
|
- message_body=message_body, data_message=data)
|
|
|
|
|
|
+ message_body=message_body, data_message=data,time_to_live=3600)
|
|
else:
|
|
else:
|
|
result = push_service.notify_single_device(registration_id=registration_id, message_title=message_title,
|
|
result = push_service.notify_single_device(registration_id=registration_id, message_title=message_title,
|
|
message_body=message_body)
|
|
message_body=message_body)
|