when i write a python script to connect to APNS and send push notifications jsut like the sample script
https://code.google.com/p/apns-python-wrapper/wiki/APNSWrapperOverview
I do not find a place to pass it the PEM passphrase.
Not i was able to manage by removing the need of passphrase but ideally i want to give it the passphrase in the code rather than on command line prompt
anybody dealt with this ?
deviceToken = 'Qun\xaa\xd4R\x11zu\x07\x04\x9dG\xe6\x96j&\x95Y\x9d\x91~\xcc`z\n\x88O\xc0\x9c\xf6\xca'
# create wrapper
wrapper = APNSNotificationWrapper('iphone_cert.pem', True)
# create message
message = APNSNotification()
message.token(deviceToken)
message.badge(5)
# add message to tuple and send it to APNS server
wrapper.append(message)
wrapper.notify()