Skip to content

Parse Server Push Issue #447

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
d8815460 opened this issue Feb 16, 2016 · 4 comments
Closed

Parse Server Push Issue #447

d8815460 opened this issue Feb 16, 2016 · 4 comments

Comments

@d8815460
Copy link

Why I got this message from Parse Server

Can not find sender for push type ios, {"where":{"deviceType":{"$in":["ios"]}},"data":{"title":"The Shining","alert":"All work and no play makes Jack a dull boy."}}
Can not find sender for push type android, {"where":{"deviceType":{"$in":["ios"]}},"data":{"title":"The Shining","alert":"All work and no play makes Jack a dull boy."}}

This is my Push Code:
curl -X POST -H "X-Parse-Application-Id: EoAplzLMJaf7ZGSvpJEWvbKz0rEBlR3nKUG9pLww" -H "X-Parse-Master-Key: removed" -H "Content-Type: application/json" -d '{ "where": { "deviceType": { "$in": [ "ios" ] } }, "data": { "title": "A special discount for Giants fans", "alert": "Check out our app for a 15% discount!" } }' http://203.77.34.135:3000/parse/push

and i will got {"result":true}

@gfosco
Copy link
Contributor

gfosco commented Feb 16, 2016

From looking at ParsePushAdapter.js, this error occurs when you don't pass in the push configuration to your ParseServer instance. See the push wiki: https://github.com/ParsePlatform/parse-server/wiki/Push#2-configure-parse-server

@bohemima
Copy link
Contributor

You might want to change your masterKey after this and make sure you don't post it again.

@gfosco gfosco closed this as completed Feb 16, 2016
@d8815460
Copy link
Author

@gfosco I got error about ParsePushAdapter.js

/www/my-parse-app/node_modules/parse-server/lib/Adapters/Push/ParsePushAdapter.js:46
        throw _iteratorError;
        ^

So, May I pass this?

And My push config is :

push: {
adapter: your_adapter
android: {
senderId: '', // The Sender ID of GCM
apiKey: '' // The Server API Key of GCM
},
ios: [
{
pfx: 'developer.p12', // Dev PFX or P12
bundleId: 'com.parseapp.helpbuy',
production: false // Dev
},
{
pfx: 'aps.p12', // Prod PFX or P12
bundleId: 'com.parseapp.helpbuy',
production: true // Prod
}
]
}

@wosheesh
Copy link

@d8815460 I had a similar problem. What worked for me was removing the android key from the push config all together:

push: { ios: { pfx: 'xxxxx.p12', bundleId: 'com.xxxx.xxxx', production: false } }

also - I don't think you need the "adapter" field in your setup?

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