I am using PyAPNs for sending iOS Push Notification. I also merged the fixes for following known issues
https://github.com/djacobs/PyAPNs/issues/13
Now, the code is working fine If I send notification to an individual device. But I have a list for device tokens and I have to send notification to all of them one by one. For this purpose I am simple looping over the single notification call like this:
def send_notifications(self, tokens, payload):
for token in tokens:
try :
logging.info("Sending Notification …Run Code Online (Sandbox Code Playgroud)