|
@@ -923,7 +923,7 @@ class PWnotificationView(View):
|
|
client_cert=os.path.join(BASE_DIR, APNS_CONFIG[appBundleId]['pem_path']))
|
|
client_cert=os.path.join(BASE_DIR, APNS_CONFIG[appBundleId]['pem_path']))
|
|
|
|
|
|
push_data = {"alert": "Motion ", "event_time": n_time, "event_type": event_type, "msg": "",
|
|
push_data = {"alert": "Motion ", "event_time": n_time, "event_type": event_type, "msg": "",
|
|
- "received_at": n_time, "sound": "sound.aif", "uid": uid, "zpush": "1", "channel": channel}
|
|
|
|
|
|
+ "received_at": n_time, "sound": "default", "uid": uid, "zpush": "1", "channel": channel}
|
|
alert = apns2.PayloadAlert(body=msg_text, title=msg_title)
|
|
alert = apns2.PayloadAlert(body=msg_text, title=msg_title)
|
|
payload = apns2.Payload(alert=alert, custom=push_data)
|
|
payload = apns2.Payload(alert=alert, custom=push_data)
|
|
|
|
|