|
@@ -46,7 +46,8 @@ class Test(View):
|
|
|
# print(daytime)
|
|
|
# pem_path = os.path.join(BASE_DIR, 'Ansjer/file/apns-dev.pem')
|
|
|
# cli = apns2.APNSClient(mode="dev", client_cert=pem_path, password='111111')
|
|
|
- cli = apns2.APNSClient(mode="dev", client_cert=pem_path, password='1234')
|
|
|
+ cli = apns2.APNSClient(mode="prod", client_cert=pem_path, password='1234')
|
|
|
+ # cli = apns2.APNSClient(mode="dev", client_cert=pem_path, password='1234')
|
|
|
now_time = int(time.time())
|
|
|
push_data = {"alert": "Motion ", "event_time": now_time, "event_type": '51', "msg": "",
|
|
|
"received_at": now_time, "sound": "sound.aif", "uid": "XFDJUHUIOKJHYTGSFFDR"}
|