Giter Site home page Giter Site logo

Comments (8)

lmahendra avatar lmahendra commented on June 22, 2024

It went through when I tried from https://rails-push-notifications-test.herokuapp.com/apple with same pem file and device token. what could be the issue at server?

from rails-push-notifications.

calonso avatar calonso commented on June 22, 2024

Hi @lmahendra, can you provide a bit more background? It sounds strange that works through the test project on heroku and not in your local.

Just to double check differences you can checkout the code running in heroku here, and run it locally and see if it runs.

Cheers!

from rails-push-notifications.

lmahendra avatar lmahendra commented on June 22, 2024

Hi @calonso , thanks for reply. It seems to be some kind of error with open ssl. here is the log

Errno::ECONNRESET: Connection reset by peer
from /home/user/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/buffering.rb:326:in syswrite' from /home/user/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/buffering.rb:326:indo_write'
from /home/user/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/openssl/buffering.rb:344:in write' from /home/user/.rvm/gems/ruby-2.2.1/gems/ruby-push-notifications-0.4.0/lib/ruby-push-notifications/apns/apns_pusher.rb:45:inpush'
from /home/user/.rvm/gems/ruby-2.2.1/gems/rails-push-notifications-0.2.2/lib/rails-push-notifications/apps/base_app.rb:24:in `push_notifications'

from rails-push-notifications.

lmahendra avatar lmahendra commented on June 22, 2024

Hi @calonso , I tried as u suggested checking out test code on my local system and it went through, with no error whatsoever. Now I want to make it happen on the server as well, what would u suggest I should do? Do I need to change particular file or gem so that it work?

from rails-push-notifications.

lmahendra avatar lmahendra commented on June 22, 2024

update: I uploaded test code on server as well and tried with different url, and notifications were pushed successfully. This is really making me pull hairs as not getting it to work for live site. Can you please help..!
Thanks.

from rails-push-notifications.

calonso avatar calonso commented on June 22, 2024

Hi @lmahendra, this looks like a typical 'silly mistake', but they're hard to find.
I don't really know where the error may come from, but I'd suggest you debug both sources and compare and see where they differ.
As far as I can see, on your project you're using version 0.4.0 of the internal ruby-push-notifications gem, while the example test project uses 0.3.0. IIRC, the only difference between them is that 0.4.0 supports password-protected .pem files...

Maybe is not related to the different version fact, but having one project that works is a great place to be in, because you can compare it against the failing one, spot the difference(s) and make them look like the one that is working.

Hope it helps.

from rails-push-notifications.

lmahendra avatar lmahendra commented on June 22, 2024

Hi @calonso , you are right, it was typically a silly mistake. It was some problem with .pem file that I stored in database. I don't know how it got jumbled, but when I tried with same pem file creating new apns app, it started to work again.
Anyways, thanks for ur time, this learned me a lesson, how big issue seems to be, first confirm the basics.

Cheers Now!

from rails-push-notifications.

calonso avatar calonso commented on June 22, 2024

Glad you found it!!

Cheers!

from rails-push-notifications.

Related Issues (18)

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.