소스 검색

增加推送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)