GarettRogers / appengine-apns-gcm

A unified push service for iPhone and Android push notifications that runs on Google App Engine (GAE).
112 stars 24 forks source link

TypeError: sendSingleApnsMessage() takes exactly 3 arguments (2 given) #5

Closed seppkurt closed 11 years ago

seppkurt commented 11 years ago

using appengine-apns-gcm to send APNs I get the error sendSingleApnsMessage(convertToApnsMessage(self, json.loads(message)), token) TypeError: sendSingleApnsMessage() takes exactly 3 arguments (2 given)

adding self to sendSingleApnsMessage(self, convertToApnsMessage(self, json.loads(message)), token) in push.py does help. but I do not know if it solves it completely because issue 4 is popping up https://github.com/GarettRogers/appengine-apns-gcm/issues/4

thanks, sebastian

GarettRogers commented 11 years ago

Yep, just add self to your call, and you should be good to go.