1

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..

enter image description here enter image description here

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!

I figured out the Issue is due to PushSharp,

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

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

Please help me

Thank you...

siva krishna
  • 1,149
  • 2
  • 15
  • 23

2 Answers2

0

For Development Notification: Select - "Apple Push Notification service SSL(SandBox)"

For Production/Distribution Notification: Select - "Apple Push Notification service SSL(SandBox & Production)"

Abdul Hameed
  • 1,025
  • 13
  • 17
  • I observed one more difference, for my previous apps it says "Apns production", but for new app id it says "Apple push services" in portal . Please check link https://www.dropbox.com/s/1w5ruckfwbkhcaf/Screen%20Shot%202015-12-21%20at%2012.45.10%20PM.png?dl=0 – siva krishna Dec 21 '15 at 07:17
  • May I know your server? Is it php or .net? – Abdul Hameed Dec 21 '15 at 07:18
  • Yeah No problem, its .net – siva krishna Dec 21 '15 at 07:20
  • I wondered by seeing the portal in production mode Why again sandbox .. Previously I used to think sandbox means Development otherwise its production – siva krishna Dec 21 '15 at 07:24
  • export .p12 file with private key. – Abdul Hameed Dec 21 '15 at 08:04
  • @sivakrishna do you get the result? I have caught this issue, too. and I use php shell to send notification, it shows ok, but my device can not receive the notification. – Blues Zhou Dec 30 '15 at 08:32
  • No, My service team is using pushsharp to send notifications. https://github.com/Redth/PushSharp/issues/585#issue but the problem is they are unable to edit the code in that class – siva krishna Dec 30 '15 at 09:21
0

After Changing to following code in my server side

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

to

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..

Thanks..

siva krishna
  • 1,149
  • 2
  • 15
  • 23