标签: pyapns

PyAPNs sending push notification to more than one device token not working

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)

python google-app-engine push-notification pyapns

7
推荐指数
1
解决办法
2253
查看次数