djacobs / PyAPNs

Python library for interacting with the Apple Push Notification service (APNs)
http://pypi.python.org/pypi/apns/
MIT License
1.22k stars 377 forks source link

send_notification_multiple doesn't work #165

Closed stoneWeb closed 8 years ago

stoneWeb commented 8 years ago
index = 0
frame = Frame()
payload = Payload(alert=alert, sound="default", custom=custom, badge=badge)
for i in tokens:
    index+=1
    expiry = time.time()+3600
    frame.add_item(i, payload, index, expiry, 10)
apns.gateway_server.send_notification_multiple(frame)

what’s wrong? but frame has one item it's work.