-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Push with custom Installation query doesn't reach device #1439
Comments
As I was suspecting, my lack of node.js skills was what caused this problem. It should not be: I guess we can close this issue 😭 |
Ohhhhhh😵😵😵😩😩😪😪 I had lost a month and even gave up on parse push notifications Thanks @spoek |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Environment Setup
My package.json (I started the server from this parse-server-example, but I'm hosting it on heroku now):
My cloud code:
My _PushStatus document:
Im interested in the part about the query:
"query": "{\"pushQuery\":{\"where\":{\"userId\":\"Y3Vy6tJYpz\"}}}",
When looking trough other issues here I find that the query-string looks more like this (I.e. not the "pushQuery" name existing, see issue #1127):
"query" : "{\"user\":{\"__type\":\"Pointer\",\"className\":\"_User\",\"objectId\":\"sdOD1uHCCa\"}}"
What is this? Am I missing some fundamental thing in node.js, or why is my server behaving this way?
FYI, a full broadcast push works splendid, i.e:
and the _PushStatus for this broadcast looks like this:
I only have one installation object, and it looks like this (And as I said, the broadcast push works):
Is this a bug or am I missing something? Thank you for your help. I hope that this issue is well formed, and I hope that I'm not just missing something obvious. I'm new to node.js.
Also, the verbose log output:
2016-04-09T11:01:28.455088+00:00 app[web.1]: verbose: sending push to 0 installations
2016-04-09T11:01:28.455777+00:00 app[web.1]: verbose: sent push! 0 success, 0 failures
And for the broadcast:
2016-04-09T10:59:55.870824+00:00 app[web.1]: verbose: sending push to 1 installations
2016-04-09T10:59:56.715648+00:00 app[web.1]: verbose: sent push! 1 success, 0 failures
The text was updated successfully, but these errors were encountered: