3

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

4

1 回答 1

1

我已经想通了这个问题。我再次撤销并重新生成了证书,这一次,我只在 Keychain 访问中导出了私钥(没有证书),导出为 .p12 并使用了新文件,并且它有效。出于某种原因,当文件中同时存在证书和私钥时,PushSharp 无法与 .p12 配合使用。

于 2015-08-06T12:40:31.743 回答