rs / pushd

Blazing fast multi-protocol mobile and web push notification service
MIT License
1.16k stars 224 forks source link

apns-cert.pem issue #62

Open bilalazam opened 10 years ago

bilalazam commented 10 years ago

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.

YogeshLele commented 10 years ago

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]

bilalazam commented 10 years ago

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.

YogeshLele commented 10 years ago

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

bilalazam commented 10 years ago

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 ?