|
@@ -372,7 +372,7 @@ class NotificationView(View):
|
|
|
else:
|
|
|
message_title = "zosi({uid})".format(uid=uid)
|
|
|
send_text = 'channel:{channel} date:{date}'.format(channel=channel, date=n_date)
|
|
|
- android = jpush.android(alert="Hello, Android msg", priority=1, style=1, alert_type=1,
|
|
|
+ android = jpush.android(alert=send_text, priority=1, style=1, alert_type=1,
|
|
|
big_text=send_text, title=message_title,
|
|
|
extras=push_data)
|
|
|
|
|
@@ -490,7 +490,7 @@ class NotificationView(View):
|
|
|
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}
|
|
|
body = json.dumps(push_data)
|
|
|
- alert = apns2.PayloadAlert(body=body, title=message_title)
|
|
|
+ alert = apns2.PayloadAlert(body=send_text, title=message_title)
|
|
|
payload = apns2.Payload(alert=alert)
|
|
|
n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)
|
|
|
res = cli.push(n=n, device_token=token_val, topic=appBundleId)
|