3
votes

I'm making MDM solution for my organization, and I have problem with push.

I have already setup MDM server, enroll MDM profile, create certificates, but when I try to push, APNS does not return anything and device does not connect to my server.

I use Apple docs and ruby code to setup server, this and this articles for certificate generation, houston for push.

I think problem is with certificates, but I can't figure out what's wrong.

1
how can we know without logs, codes, certificate details, etc?Raptor
I didn't get any logs, APNS does not return anything. For certificates I just do each step from articles above. Only one thing I change - replace in "houston" "aps" with "mdm" peyloadkemmotar
APNS should return message , if you implement didRegisterForRemoteNotification method.Raptor
@ShivanRaptor where I must implement this method?kemmotar
In your App Delegate.Raptor

1 Answers

0
votes

you can check the certificate and key doing this:

openssl s_client -connect gateway.sandbox.push.apple.com:2195 -cert certificate.pem -key key.pem

Also try this one:

openssl s_client -connect gateway.push.apple.com:2195 -cert certificate.pem -key key.pem

You can find a good tutorial here.