I have set everything up via the directions provided and I am getting the following issues:
- On one machine it says "You have denied this website permission to send push notifications." If i click the I changed my mind option is just refreshes to show the same thing.
- On a second machine it just constantly says "requesting permission" but the dialog box never shows up.
site in question is: https://tchpush.thechipkahouse.com
It is worth noting I have tested the cert and key files on apples production server and they will make and hold a connection through telnet.
Apple Error Console is showing an error on live 8 of the bootstrap.min.js file
Error is TypeError: 'undefined' is not a function (evaluating 'a')
I also enabled the error display on the index page as you suggested to andrebazaglia and I am getting the following error there: Undefined offset: 1 in /home/azchipka/public_html/tchpush/index.php on line 33
which is reference to : $function = $path[1];
Kinda playing the trial and error game at this point. Thinking this problem is related to the certificate since that is such an annoying process in this whole thing.
I ran the command openssl s_client -connect gateway.push.apple.com:2195 -CAfile apns-cert.pem which generated the following error: verify error:num=20:unable to get local issuer certificate
verify return:0
The big problem I am encountering here is that your directions say to use: openssl x509 -in website_aps_production.cer -inform der -out apns-cert.pem -nodes -clcerts to which I am being told by terminal -nodes is an unknown option.
Using the directions referenced from your site for certificate creation found here (http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1) the certs make and pass the test presented and hold the connection to the server.
Also when I use the testing code provided by apple openssl s_client -connect gateway.push.apple.com:2195 -cert tch.pem -debug -showcerts -CAfile tchpushercert.pem the connection reports fine with no errors.
Thanks in advance for any help you can provide.