Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to configure apple push notification for distribution
    primarykey
    data
    text
    <p>I am successfully using APN with my app in developer mode, but I cannot get it to work in adhoc distribution mode.</p> <p>i've followed faithfully the tutorial <a href="http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12" rel="nofollow">http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12</a> and I've read all the other posts on this issue that i could find on SO and elsewhere.</p> <p>in developer mode I create the cer and p12 pem files and combine them: when i try: openssl s_client -connect gateway.push.apple.com:2195 -cert aps_production.cer.pem -key MyPrivateKey.p12.pem, I get:</p> <pre><code>depth=1 /C=US/O=Entrust, Inc./OU=www.entrust.net/rpa is incorporated by reference/OU=(c) 2009 Entrust, Inc./CN=Entrust Certification Authority - L1C verify error:num=20:unable to get local issuer certificate verify return:0 -----BEGIN CERTIFICATE----- (certificate deleted) -----END CERTIFICATE----- subject=/C=US/ST=California/L=Cupertino/O=Apple Inc./OU=iTMS Engineering/CN=gateway.push.apple.com issuer=/C=US/O=Entrust, Inc./OU=www.entrust.net/rpa is incorporated by reference/OU=(c) 2009 Entrust, Inc./CN=Entrust Certification Authority - L1C --- No client certificate CA names sent --- SSL handshake has read 2723 bytes and written 2140 bytes --- New, TLSv1/SSLv3, Cipher is AES256-SHA Server public key is 2048 bit Secure Renegotiation IS supported Compression: NONE Expansion: NONE SSL-Session: Protocol : TLSv1 Cipher : AES256-SHA Session-ID: Session-ID-ctx: Master-Key: (deleted) Key-Arg : None Start Time: 1348332242 Timeout : 300 (sec) Verify return code: 0 (ok) </code></pre> <p>I don't know what the "verify error:num=20:unable to get local issuer certificate" means or if it is important. I get the very same thing when I use gateway.sandbox.push.apple.com:2195 with my developer cer and key, but it works fine.</p> <p>when i then use simplepush.php with a developer version of app on phone. notifications work perfectly. when i use the same with adhoc distribution, and a adhoc distribution version of app on phone, i get nothing despite simplepush.php returning: "Delivered Message to APNS"</p> <p>i've queried the feedback service, and there are no errors reported.</p> <p>Others have suggested that APNS doesn't work for adhoc mode if the app hasn't been approved by apple. Is that the problem? Our app is still under review.</p> <p>Thanks for your help.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload