pushd icon indicating copy to clipboard operation
pushd copied to clipboard

apns-cert.pem issue

Open bilalazam opened this issue 10 years ago • 4 comments

me@ubuntu:~/pushd$ sudo coffee pushd.coffee info: Registering push service: event-source info: Registering push service: apns info: Registering push service: gcm info: Registering push service: http info: Registering push service: mpns-toast info: Registering push service: mpns-tile info: Registering push service: mpns-raw info: Listening on tcp port 80 info: Listening on udp port 80 error: APNS Error Error: ENOENT, no such file or directory 'apns-cert.pem' for subscriber undefined

The error at the end is something i am unable to understand and resolve, please help.

bilalazam avatar Feb 26 '14 22:02 bilalazam

By default pushd looks for 2 files apns-cert.pem and apns-key.pem in the pushd folder. To generate these files,You will need to generate a developer certificate for apns

https://developer.apple.com/library/mac/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Chapters/ProvisioningDevelopment.html#//apple_ref/doc/uid/TP40008194-CH104-SW1

http://quickblox.com/developers/How_to_create_APNS_certificates

Once you have the .pem file then separate it and save it with certificate part into apns-cert.pem and key part to apns-key.pem.

Restart pushd, and it should work. [you will be prompted for the passphrase, enter the same passphrase that was entered while generating the certificate]

YogeshLele avatar Feb 27 '14 04:02 YogeshLele

Thanks Yogeshlele, i ll follow that, by any chance do you know about any docs/tutorial available for the android GCM of pushrd like that of iphone given in the main readme file.

bilalazam avatar Mar 01 '14 02:03 bilalazam

http://developer.android.com/google/gcm/index.html

YogeshLele avatar Mar 01 '14 16:03 YogeshLele

Thank you Yogeshlele, but the link is for direct connection to GCM, dont we have to call pushd code to send messages after we have setup GCM for pushd? to take advantage of the abstraction that pushd would offer :confused: , is my understanding correct ?

bilalazam avatar Mar 02 '14 00:03 bilalazam