Closed derwaldgeist closed 8 years ago
My fault. I used the apn-dev key instead of apn and vice-versa.
I am new to work IOS push notifications and getting below error my certificate validate upto september 2022 on production mode
Error: Socket unusable after connection. Hint: You may be using a certificate for the wrong environment
at Connection.
@derwaldgeist how did u generate the pem file for key and certificate? Can you share the commands? I tried the commands mentioned in: https://github.com/raix/push/blob/v3.x/docs/IOS.md but still I am getting this same error. Thanks in advance. :)
@jatinshrivastava did you solve it? I am getting the same error
I tried out the meteor-raix-push-demo app and updated it to Meteor 1.2 and the latest version of raix:push. Although my certificates are reported OK when testing against the APN service, I get the following error in the console each time I try to send a notification:
After reading #134, I also explicitly set the NODE_ENV variable to "development" (which wasn't present before), but this did not change anything. I am testing on a localhost, and in the json the production flag is set to false, so it should take the development cert and key.