APNS证书问题,同时发送通知iOS应用 [英] APNS Certificate Issue while sending notification to iOS App

查看:474
本文介绍了APNS证书问题,同时发送通知iOS应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

要发送通知给我的即席程序,我选择了previously分布APNS服务。我得到通知成功。

To send notifications to my adhoc app i selected previously Distribution APNS service. I got notifications successfully.

但是,现在在创建证书我在困惑,选择其中一个入口。

But now while creating certificate I’m in confusion which one to select in portal..

在这里输入的形象描述
  

选择(沙箱和功放; Prodcution)创造.p12文件,并上传到我断绝..
但是我得到以下错误
您所选择的生产服务器,但你的证书没有出现是生产合格证!请检查以确保您有正确的证书!

Selected (sandbox&Prodcution) and created .p12 file and uploaded to my sever.. But Im getting following error You have selected the Production server, yet your Certificate does not appear to be the Production certificate! Please check to ensure you have the correct certificate!

我想通了,问题是由于PushSharp,

I figured out the Issue is due to PushSharp,

https://github.com/Redth/PushSharp/issues/585#issue

但无法编辑/修改了code。在类。

But unable to edit/Modify that code in that class.

请帮我

感谢您......

推荐答案

在我的服务器端更改为以下code后

After Changing to following code in my server side

pushBroker.RegisterAppleService(新ApplePushChannelSettings(真,appleCertificate,密码));

pushBroker.RegisterAppleService(new ApplePushChannelSettings(true, appleCertificate, password));

pushBroker.RegisterAppleService(新ApplePushChannelSettings(真,appleCertificate,密码,真实));

pushBroker.RegisterAppleService(new ApplePushChannelSettings(true, appleCertificate, password, true));

变化:增加了一个参数的构造函数来禁用证书检查

Changes: Added One more parameter to constructor to disable certificate check.

有关新/旧证书现在即时得到通知。

Now Im getting notifications for old/new certificates..

谢谢..

这篇关于APNS证书问题,同时发送通知iOS应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆