adityamishra90 / apns-python-wrapper

Automatically exported from code.google.com/p/apns-python-wrapper
0 stars 0 forks source link

APNSNotification always contains "aps" keys - it should be added only if is not empty #10

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago

When building an APNSNotification, an "aps" key is always appended

--> keys.append('"aps":{%s}' % ",".join(apsKeys))

Even if the apsKeys dict is empty.

This is an error, the dict should be checked and only if is not empty it should 
be added.

The reason is that some services in the Iphone expect an empty notification 
with properties only and the 'aps' key causes an error.

APNSWrapper version - 0.6.1

Original issue reported on code.google.com by Ami.Lutt...@gmail.com on 2 Jun 2011 at 6:19

GoogleCodeExporter commented 8 years ago
thank you for report. I'll give my efforts for apns-wraper this month.

Original comment by klymys...@gmail.com on 2 Jun 2011 at 6:15