iOS notification issue
Not getting notifications when app is in background or active state, they're only coming when app is in inactive state.
-
Hi Apurva,
Here is a small documentation that explains how to generate IOS certificate compliant for Rainbow Push notification service.
This documentation will be part of the IOS official documentation on the Rainbow API HUB.
Rainbow IOS Push Notifications
This procedure has to be donne for both certificates (IM and VOIP)
- Retrieve certificate file from Apple developer portal (.cer file)- Import this file in the Mac keychain.- Find this certificate into the keychain- Export the certificate from the keychain and save it with a name... MyDevCert.p12 (right click, export and enter your password)- Expend the certificate and export the private key associated to this certificate... MyKey.p12
- These files now need to be converted to the PEM format by executing this command from the terminal (Always enter a passphrase):
`openssl pkcs12 -clcerts -nokeys -out MyDevCert.pem -in MyDevCert.p12``openssl pkcs12 -nocerts -out MyKey.pem -in MyKey.p12`
- Remove the passphrase from the key :
`openssl rsa -in MyDevCert.pem -out MyDevCert-noenc.pem`
- Combine the key and cert files into a apns-dev.pem :
`cat MyDevCert.pem MyDevCert-noenc.pem > cert-dev.pem`
- Upload the cert-dev.pem file with the Rainbow API HubHope this will help you.Could you confirm that it works on your side ?Regards,Olivier -
I guess there a mistake in your command.
When we remove passphrase from the key you have given `openssl rsa -in MyDevCert.pem -out MyDevCert-noenc.pem`
but what i think it should be like`openssl rsa -in MyKey.pem -out MyKey-noenc.pem`.
Please check and confirm.
Thanks.
-
Hello Apurva,
Yes, you're right.
The right command is :
- openssl rsa -in MyKey.pem -out MyKey-noenc.pem (remove passphrase)
After that you can combine this unencrypted key with your pem certificate :
- cat MyDevCert.pem MyKey-noenc.pem > cert-dev.pem
And finally upload the cert-dev.pem file with Rainbow API Hub.
Best regards,
Joseph.
Vous devez vous connecter pour laisser un commentaire.
Commentaires
3 commentaires