Comments (5)
Hi @gabrieletassoni. Rails push notifications gem uses Ruby Push Notifications to build notifications. In the particular case of GCM the data is appended here: https://github.com/calonso/ruby-push-notifications/blob/master/lib/ruby-push-notifications/gcm/gcm_notification.rb#L26 which means that whichever thing you append there should be delivered.
Let me know if you need any further help or you figured out already.
Cheers!
from rails-push-notifications.
Many thanks for the answer and the good direction,
I'll dig more into the payload to be sent and how to manage it client side, I'm using the GCM demo provided by Google, which I think it manages just the :message key, I'll experiment with it to show custom payload fields.
Thanks again,
Gabriele
from rails-push-notifications.
Ok, that's great.
Let me know if you need anything else and I'll be happy to help.
PS: Once you work out how to add them, could you please add an example to this thread should someone else find it useful? Also an update of the gem's docs/examples would he lovely.
Regards
from rails-push-notifications.
Yes, for sure! ^_^ In a couple of days Iād manage to code again on that project and hopefully report back here.
Bye.
Il giorno 29 gen 2016, alle ore 11:26, Carlos Alonso [email protected] ha scritto:
Ok, that's great.
Let me know if you need anything else and I'll be happy to help.
PS: Once you work out how to add them, could you please add an example to this thread should someone else find it useful? Also an update of the gem's docs/examples would he lovely.
Regards
ā
Reply to this email directly or view it on GitHub #7 (comment).
from rails-push-notifications.
Closing issue as stale. Any update @gabrieletassoni??
Please reopen when you're ready.
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
- Update Badge number on Android HOT 3
- Errno::ECONNRESET PushNotificationController -- Connection reset by peer HOT 8
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.