Skip to content

Push Notification not received when post from Postman #3991

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
softmastx opened this issue Jul 4, 2017 · 1 comment
Closed

Push Notification not received when post from Postman #3991

softmastx opened this issue Jul 4, 2017 · 1 comment

Comments

@softmastx
Copy link

softmastx commented Jul 4, 2017

I'm using Parse Server latest version to send push notification to my iOS device,
It is working fine when the push is sent from Parse-Dashboard but sending from Postman will never get any push.

Here my Postman configuration,

{
"where": {
"deviceType": {
"$in": [
"ios","android"
]
}
},
"data": {
"title": "test title",
"alert": "test alert",
"sound": "default",
"type": "story"

      }

}

Here my Parse-Server logs

verbose: REQUEST for [POST] /parse/push: { "where": { "deviceType": { "$in": [ "ios", "android" ] } }, "data": { "title": "test title", "alert": "test alert", "sound": "default", "type": "story" } } method=POST, url=/parse/push, connection=upgrade, host=myserver.com, content-length=317, postman-token=9eb222b3-2086-782e-3ad8-50814c9b0505, cache-control=no-cache, origin=chrome-extension://fhbjgbiflinjbdggehcddcbncdddomop, x-parse-application-id=MyAppID, x-parse-master-key=ABCD, user-agent=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36, content-type=application/json, accept=*/*, accept-encoding=gzip, deflate, br, accept-language=en-US,en;q=0.8, $in=[ios, android], title=test title, alert=test alert, sound=default, type=story verbose: RESPONSE from [POST] /parse/push: { "headers": { "X-Parse-Push-Status-Id": "2f2F2rgyxi" }, "response": { "result": true } } X-Parse-Push-Status-Id=2f2F2rgyxi, result=true verbose: _PushStatus 2f2F2rgyxi: sending push to 1 installations

Thanks for your help

@softmastx
Copy link
Author

This issue is resolved by removal of "title" field in Postman!

"data": {
          
            "alert": "use only alert field should work now",
            "sound": "default",
            "type": "story"
            
          }

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

1 participant