Code Monkey home page Code Monkey logo

apnserver's People

Contributors

bpoweski avatar jakimowicz avatar myobie avatar schmidp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

apnserver's Issues

UTF8 encoding issues

Hello,

I have run into issues when trying to send push notifications with utf8 character in it on ruby 1.9. With 2 changes on my fork I was able to send push with utf8 content:

  1. Use the JSON generate/parse methods instead of activesupport's as activesupport would encode the utf8 char as something like \ue002e and apple doesn't support that.
  2. Use bytesize instead of size when adding the length of the payload in the notification headers as size would not take in account the real length of the UTF8 encoded characters.

Is it something that was known and is there better solution to do it ? If not would you like me to pretty it up and make a pull request ?

Anyway thank you for the gem :)

Sylvain

Error : Connection timed out (Errno::ETIMEDOUT)

Hi guys,

I've been noticing something strange lately. After some time idle (no notification is pushed), ApnServer fails silently to deliver notifications, and end up raising :

/usr/lib/ruby/1.9.1/openssl/buffering.rb:235:in `syswrite': Connection timed out (Errno::ETIMEDOUT)
    from /usr/lib/ruby/1.9.1/openssl/buffering.rb:235:in `do_write'
    from /usr/lib/ruby/1.9.1/openssl/buffering.rb:249:in `write'
    from /somepath/shared/bundled_gems/ruby/1.9.1/bundler/gems/apnserver-88e2c873487a/lib/apnserver/client.rb:36:in `write'

I'll be looking into it, but before, I'd like to know if it s specific to my setup or if some of you ever experienced the same issue.

Cheers

Namespace conflict ApnServer::Server::EM

Hi,

I've just upgraded to 0.2 and I'm facing a weird issue issue both on my dev and prod machines. When running apnserverd, I get :

"../lib/apnserver/server.rb:6:in `initialize': uninitialized constant ApnServer::Server::EM (NameError)"

This seems to say that when you call EM::Queue.new, it is appending this to the namespace it's in (module : ApnServer and class:Server). I can't figure out why...

Thanks for this gem and your help !
julien

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.