-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do I send a payload? #5
Comments
Ok, so it is the same problem present in the the other opened ticket. Pfff...not sure I still have a valid Apple developer subscription. Do you think you could test this if I implement the missing parts? |
@jamauro I live under GMT+4 and if we could have a "professional date" :)) and a pseudo-online chat option, I could totally exploit your kindness ... just to coat it with some sugary begging wording :)))). |
Yeah I'm up for it. I'm GMT -5. :) So it might work best if you have time on Saturday or Sunday. Shoot me an email: jamauro [at] gmail.com |
hey @paulincai, are you still up for collaborating on this? I'm planning on pushing my app live soon and would love to get this in there. |
I'm loving this package compared to raix:push, notifications work way better but... I really need payload in order to implement it fully in my app :( Any updates @paulincai? |
I've been able to send data but I can't process it at the client. Browser console is not showing anything while in raix, I can console.log(notification) and the Route notification.data.url for example... Any ideas? |
@AleF1 coming this week |
I managed to send and route data, dunno if it is the optimal way though. The main issue is having the app in the background, therefore you must change notification for data in the androidnote. Check it out at: https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#notification-vs-data-payloads
|
Fixed in V2. I am still writing the documentation and some hooks to make the package more workable for developers. |
For me |
Thanks for the package @paulincai. I see in
/example/app/startup/client/index.js
there's the option to send a payload so that you can take action on that data. I'd like to route to a specific place in the app.But when I try to use
Push.send(notification)
with a notification that looks like:I get a
Match error: Unknown key in field payload
. I've also tried replacingpayload
withdata
with the same result.Looks like it's getting hung up here:
meteor-push/lib/server/push.js
Line 63 in 45d9797
I'm assuming that's because neither
payload
ordata
are in the check here:meteor-push/lib/server/push.js
Line 17 in 45d9797
Am I missing something or Is there another way to go about this? :)
The text was updated successfully, but these errors were encountered: