3
votes

I am using APNS Sharp for sending push notification in IOS. I have successfully used that in development environment. But when app is live it no longer working. I have changed the push certificate to the Deployment certificate. And changed the code to point to apple server

push.RegisterAppleService(new ApplePushChannelSettings(true,appleCert, certificatePassword));

I am not getting any error back. But the device is not getting any notifications. Here I am trying to send notification to a single device.

How can I do this properly?

Thanks

1
Are you sure you are using a production device token? - Eran
Is your firewall blocking the APNS messages to the production environment at Apple? - CSmith
@Zach, did you make it work? I am having the same problem =( - Ezeki
@Ezeki Yes its started working for me. I was sending development token. Thats the reason. - Zach
Solution For This Question refer the link stackoverflow.com/questions/23329040/… - Elangovan

1 Answers

1
votes

I've figured the problem. I've revoked and regenerated the certificate again, and this time, I've only exported the private key (without the certificate) in Keychain access, exported as .p12 and used the new file, and it worked. For some reason, PushSharp wasn't playing well with .p12 when both certificate and private key was present in the file.