Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pigeon compatible with Pushkit iOS 8 - VoIP #30

Closed
Douvi opened this issue Aug 30, 2016 · 2 comments
Closed

Pigeon compatible with Pushkit iOS 8 - VoIP #30

Douvi opened this issue Aug 30, 2016 · 2 comments

Comments

@Douvi
Copy link

Douvi commented Aug 30, 2016

Apple introduce for iOS 8.0 push notification with action in background in VoIP.

I would like to know if the lib pigeon in compatible with this feature. You can see below a Git with a full explication of the backend (C#) and iOS app.

Pushkit-tutorial
Apple-doc

Thanks

@Douvi
Copy link
Author

Douvi commented Aug 30, 2016

OK GOODDDDDD NEWSSS :DDD - IT'S WORKING!!!!!. But there is a little modification to do, to make it work about the .pem file.

I check this tutorial

basically, you just need to encore your voip_services.cer (dowloaded from apple developer) and voip_services.p12 (generated by your keychain)

  1. download your voip_services.cer from Apple Developer
  2. add voip_services.cer into keychain
  3. Exportvoip_services.cer in .p12 - right click on the file VoIP Service:<bundle_of_your_app> and click Export voip_services.p12.
  4. run openssl x509 -in voip_services.cer -inform der -out cert.pem
  5. run openssl pkcs12 -nocerts -out key.pem -in voip_services.p12
  6. to remove the password run openssl rsa -in key.pem -out key_unencrypted.pem
  7. add key_unencrypted.pem and cert.pem into you project at /private/cert_voip/
  8. into config.exs you will set you file like this
config :pigeon,
  apns_mode: :dev,
  apns_cert: {:my_project, "cert_voip/cert.pem"},
  apns_key: {:my_project, "cert_voip/key.pem"},
  apns_2197: false

DONE :D you can run your server and send Push VoIP

Thanks the team for you amazing job...

@hpopp
Copy link
Member

hpopp commented Aug 30, 2016

Glad everything is working for you!

@hpopp hpopp closed this as completed Aug 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants