浏览代码

增加推送fcm的time_to_live测试

chenjunkai 6 年之前
父节点
当前提交
e7f21e98f1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Controller/Test.py

+ 1 - 1
Controller/Test.py

@@ -98,7 +98,7 @@ class Test(View):
         print(message_body)
         if push_type:
             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:
             result = push_service.notify_single_device(registration_id=registration_id, message_title=message_title,
                                                        message_body=message_body)