Apple Push Notification in Erlang (or improved in Ruby?)

只愿长相守 提交于 2019-12-04 09:03:01
ndim

This question on Apple Push Notifications with Erlang might also be useful for this one.

The HTTP Client (with SSL support) that ships with Erlang works reasonably well ( I can't say I have battle tested it ). The relevant documentation is available here.

1) Don't forget to perform an "inets:start()" in your application before attempting to do HTTP calls.

2) In my (small) experience, starting the 'inets' module seems to be a bit tricky: don't try starting it within your supervisor module or else your servers won't work. I usually do 'inets:start()' in the first server module of my application before any other servers requiring HTTP are.

3) To perform the 'push' operation, I guess you would need to use the 'stream' option.

You might also check out the apn_on_rails project.

If you come up with an Erlang implementation, please consider sharing it with us :).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!