Comments (8)
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.
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.
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:in
do_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:in
push'
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.
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.
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.
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.
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.
Glad you found it!!
Cheers!
from rails-push-notifications.
Related Issues (18)
- No text in the notification HOT 2
- Will this gem work with fcm? HOT 2
- APNv2 HOT 3
- Mulitple Notifications for the same notification HOT 14
- Typo in docs under apple application setup HOT 1
- this gem works with FCM? HOT 2
- Data for GCM is not text HOT 3
- Pushkit notifications HOT 2
- Notifications not received when app is closed HOT 3
- Rails 4 support HOT 9
- Unauthorized Error 401 HOT 1
- Send additional data using this gem HOT 3
- Migration files in Rails 5 wont migrate HOT 1
- How to handle badge count for multiple destinations HOT 2
- Unable to set sender_id for GCM HOT 2
- Which fields are available? HOT 5
- Update Badge number on Android HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rails-push-notifications.