|
@@ -452,7 +452,8 @@ class NotificationView(View):
|
|
n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)
|
|
n = apns2.Notification(payload=payload, priority=apns2.PRIORITY_LOW)
|
|
res = cli.push(n=n, device_token=token_val, topic=appBundleId)
|
|
res = cli.push(n=n, device_token=token_val, topic=appBundleId)
|
|
# assert res.status_code == 200, res.reason
|
|
# assert res.status_code == 200, res.reason
|
|
- # assert res.apns_id
|
|
|
|
|
|
+ # assert res.apns_id
|
|
|
|
+ print(res.status_code)
|
|
if res.status_code == 200:
|
|
if res.status_code == 200:
|
|
return response.json(0)
|
|
return response.json(0)
|
|
else:
|
|
else:
|