Skip to content

Push notifications not sent #1182

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

Closed
3 tasks done
firaskafri opened this issue Mar 24, 2016 · 9 comments
Closed
3 tasks done

Push notifications not sent #1182

firaskafri opened this issue Mar 24, 2016 · 9 comments

Comments

@firaskafri
Copy link

Environment Setup

Nothing special

Steps to reproduce

Using Parse Android SDK 1.13.0 and parse-server version 2.2.2

Logs/Trace

Parse Server Verbose trace:

POST /parse/push { 'user-agent': 'node-XMLHttpRequest, Parse/js1.8.1 (NodeJS 5.8.0)',
accept: '/',
'content-type': 'text/plain',
host: 'localhost:1337',
'content-length': '311',
connection: 'close' } {
"channels": [
"SOME_CHANNEL"
],
"data": {
"title": "dummy title",
"message": "dummy message",
"action": "ACTION",
"senderId": "4zSfKw2T5b"
}
}
response: {
"response": {
"result": true
}
}
response: {
"response": {
"result": "sent"
}
}

DB Record

{ "_id" : ObjectId("56f45b891eb3cdae4d74d160"), "objectId" : "WWfLEatYht", "pushTime" : "2016-03-24T21:26:33.921Z", "_created_at" : ISODate("2016-03-24T21:26:33.921Z"), "query" : "{"channels":{"$in":["SOME_CHANNEL"]}}", "payload" : { "title" : "dummy title", "message" : "dummy message", "action" : "ACTION", "senderId" : "4zSfKw2T5b"}, "source" : "rest", "title" : null, "expiry" : null, "status" : "succeeded", "numSent" : 0, "pushHash" : "d1eeaba5cb95ce819c32efe295b2fe96", "_wperm" : [ ], "_rperm" : [ ], "numFailed" : 0}

Can't find anything in server logs even when VERBOSE is set to 1, where can I find GCM request and response?

Possible duplicate #1127

@wangmengyan95
Copy link
Contributor

Please update parse-server to 2.2.2. We have a known issue #1104 and it has been fixed.

@firaskafri
Copy link
Author

@wangmengyan95 sorry I'm using 2.2.2 not 2.2.0

@jiawenzhang
Copy link

I was using 2.2.0 and having issues of sending GCM push, after upgrading to 2.2.2, push worked.

@firaskafri
Copy link
Author

@jiawenzhang I updated to 2.2.2 and produced the same issue, not logs or traces for any error.

@firaskafri
Copy link
Author

@flovilmart please any ideas? thoughts? comments? I can't even debug

@flovilmart
Copy link
Contributor

We externalized the modules to simplify bug reports, please reopen here: https://github.com/parse-server-modules/parse-server-push-adapter

@flovilmart
Copy link
Contributor

@wangmengyan95 added you as owner in the organization

@firaskafri
Copy link
Author

@flovilmart That's good news, would love to contribute there

@flovilmart
Copy link
Contributor

we actually removed all adapters from the core parse-server to simplify contributions and bug reports

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants