Open Maxwell2022 opened 10 years ago
Your must generate a *.pem
file and set to configuration.
Ok, looking at the configuration I think the bundle is waiting for a .pem
certificate
To generate one from the .p12
I had, I did the following:
openssl pkcs12 -in zumny-apns-dev-cert.p12 -out zumny-apns-dev-cert.pem -nodes -clcerts
And update my config file to point to the .pem
file:
rms_push_notifications:
android:
gcm:
api_key: xxxxxxx
use_multi_curl: true # default is true
ios:
sandbox: true
pem: "certificates/xxxx-apns-dev-cert.pem" # can be absolute or relative path (from app directory)
passphrase: "xxxxx"
And it's now working. I think more documentation about this would be a great plus for the bundle ;)
Thanks everyone
yes, but having the doc at the same place than the bundle or at least linking the doc in the bundle would have saved me a lot of time ;)
I'll submit a PR with documentation improvement ;)
Guys- This still pending?
I think it's missing some documentation about iOS and how to generate the certificate and passphrase. I've followed a neat video that it's explaining how to do ti (for another service, but still the same process): https://www.youtube.com/watch?v=12yjIm0Z8Cw
app
folder (app/certificates
for me)Here is my configuration:
Now I have a p12 certification and the passphrase I've created. If I try to send a push notification I get the following error: