fsulser
fsulser

Reputation: 904

IOS push notifications not working in ad hoc mode

Hey there I'm trying to test my application in the ad hoc mode for release. I don't have any problems testing it in the developper mode. What I've done: I created the certificate as described here in apple-push-notification-services-in-ios. Once for developer and once for the distribution/ad hoc.

Now if I'm starting the adhoc mode I can get my device token by printing it on the screen, so I think there should not be any fault in the generation of the certificates on apple developer. And I know that developer and distribution device token are different. But if I'm testing app to send message, I won't receive any message however I received one test message when I was running app using developer settings.

Does anyone have an idea how to fix it or what might be wrong?

Upvotes: 0

Views: 1179

Answers (1)

fsulser
fsulser

Reputation: 904

Found this solution in another forum:

Sandbox: gateway.sandbox.push.apple.com, port 2195 (for the development)

Production: gateway.push.apple.com, port 2195 (for the release)

Thank you for your help and hope others might use this

Upvotes: 2

Related Questions