S
S
Savant92015-12-07 23:28:03
Ruby on Rails
Savant9, 2015-12-07 23:28:03

Why might a method fail in rails?

I am using the gcm gem. I have a simple form, after confirmation, there is a redirect in the controller, there I send messages using gcm. The problem is: messages are simply not sent, BUT! when I stop the application with a byebug, copy and paste the same line from the application, press RET, then for some reason the messages come!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Lozer, 2015-12-22
@ammet

Better use https://github.com/rpush/rpush
My practice has shown that it is much better and holds the interface of several Apn services at once, etc.
Once I faced the same problem, switching to this gem helped.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question