-
Notifications
You must be signed in to change notification settings - Fork 226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Trying to notify multiple tokens results in UnknownAppID Error #80
Comments
Are you able to put some breakpoints and some logs in there to see what's going wrong? I don't remember having tested this, but it should be working |
I'm not actively working on this project anymore but I can give you some more help. First, this is the line that failed when pyapns.notify(APP_ID, tokens, {'aps': data}) And as a workaround to bypass that error, I had to change it to this: for token in tokens:
pyapns.notify(APP_ID, token, {'aps': data}) That successfully got around the problem, but not being able to batch is clearly not ideal. |
I'm running into the exact same issue with pyapns 0.4.1. The iOS push notification works fine when I send a single device token, but no longer works as soon as the device tokens is a list. Had to employ a similar workaround of sending one at a time as @bdoms suggests. @samuraisam were you able to figure out a fix? |
Same issue here.. This is the server log. ` |
On the v50 branch I can send notifications to individual tokens all day long and it works great.
But the instant I try to send to a list of tokens I get this error every single time. Nothing else has changed. Full trace below.
The text was updated successfully, but these errors were encountered: