|
@@ -353,7 +353,7 @@ class NotificationView(View):
|
|
|
alert = apns2.PayloadAlert(body=msg_text, title=msg_title)
|
|
|
payload = apns2.Payload(alert=alert, custom=push_data)
|
|
|
|
|
|
- return uid, channel, appBundleId, str(token_val), event_type, n_time, msg_title,msg_text
|
|
|
+ # return uid, channel, appBundleId, str(token_val), event_type, n_time, msg_title,msg_text
|
|
|
n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)
|
|
|
res = cli.push(n=n, device_token=token_val, topic=appBundleId)
|
|
|
print(res.status_code)
|