2

I can’t push to iOS. I get the following message:

Variant iOS Development has failed: Error sending payload to APNs server: java.net.ConnectException: Verbindungsaufbau abgelehnt (Connection refused)

I created and installed all certificates as described here and everything runs fine. I can build the app and if I run it on my iPhone using Xcode, it asks me on first installation to accept notification. It seems to be perfect on the App-side.

In Aerogear Server under Variants appears my iPhone device and if I send a message I get this error.

I build the app with Cordova ionic and on Android it runs perfectly.

What does this error-message mean and how can I fix it?

rmaddy
  • 314,917
  • 42
  • 532
  • 579
  • is your certificate a development certificate or a production certificate? did you check the development radio button if you are using development certificate or production radio button if you are using production certificate? – jcesarmobile Jan 11 '17 at 11:46
  • I added both certificates and both didn't work. I also cross checked – Richard Burkhardt Jan 11 '17 at 11:49
  • But are you checking the right radio button depending on the certificate you upload? If you are running from Xcode, then use a Development certificate and check Development radio button – jcesarmobile Jan 11 '17 at 11:51
  • yes I checked the correct radio buttons – Richard Burkhardt Jan 11 '17 at 11:52
  • the server firewall allows all outgoing communication – Richard Burkhardt Jan 11 '17 at 11:53
  • Can you try to send the push from your computer using Pusher (https://github.com/noodlewerk/NWPusher) and your development certificate just to make sure that it's right? put the app in background before sending the push – jcesarmobile Jan 11 '17 at 11:59
  • I tried NWPusher and it worked. So the certificate seems valid – Richard Burkhardt Jan 11 '17 at 12:58
  • Then everything is ok on the app and certificate, the problem must be on the server, but you say that the firewall allows all outgoing communication, so I ran out of ideas. – jcesarmobile Jan 11 '17 at 13:25

0 Answers0