0

I have created an application that should receive push notifications. Unfortunately, the push notifications are only received in a test environment and not in a production environment.

I have checked all I had to check, I also created an app with provisioning "ad-hoc", but unfortunately nothing I do solves the problem.

What am I doing wrong?

rebello95
  • 8,486
  • 5
  • 44
  • 65
macuser
  • 567
  • 2
  • 6
  • 16

2 Answers2

0

If you want to receive notification in a production environment, you have to generate yor app with production certification and generate your .p12 file with all production file and certification.

Pandara
  • 139
  • 7
  • Yes, i generate my app with production certification and i generate .p12 – macuser Oct 15 '14 at 04:15
  • I don't undeterstand this. This is ("[16777217] transmitted {"aps":{"badge":1,"alert":"Hello World"}} on first attempt to token 3f411..a5bd2") the response of Apple after send notification. I see that Apple response with notification transmitted..Why ? – macuser Oct 15 '14 at 04:20
  • How about your device_token. Device token you get in dev environment is different from pro environment. Do you upload your device_token correctly? – Pandara Oct 15 '14 at 04:21
  • Yes is correct. If is not correct Apple response with invalid token – macuser Oct 15 '14 at 04:32
0

Resolved. The problem was the digital certificate for the service of apn for the production of Apple I had to recreate the certificate following this forum:

Cannot send push notifications using Javapns/Javaapns SSL handshake failure

Thank you all.

Community
  • 1
  • 1
macuser
  • 567
  • 2
  • 6
  • 16