Skip to content
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

GCM Push is not working and no logs. #1104

Closed
kimhongyeon opened this issue Mar 19, 2016 · 8 comments
Closed

GCM Push is not working and no logs. #1104

kimhongyeon opened this issue Mar 19, 2016 · 8 comments
Assignees
Labels
type:bug Impaired feature or lacking behavior that is likely assumed

Comments

@kimhongyeon
Copy link

APNS push is working.
GCM push is not working and no logs.

In same environment, https://api.parse.com/1/push is very well.

What the ploblem.

Environment Setup

var express = require('express');
var ParseServer = require('parse-server').ParseServer;
var app = express();

// Specify the connection string for your mongodb database
// and the location to your Parse cloud code
var api = new ParseServer({
databaseURI: 'my',
cloud: 'my', // Provide an absolute path
appId: 'my',
masterKey: 'my',
clientKey: 'my',
restAPIKey: 'my',
javascriptKey: 'my',
dotNetKey: 'my',
fileKey:'my',
push: {
android: {
senderId: '1235215235', // The Sender ID of GCM
apiKey: 'myKey' // The Server API Key of GCM
},
ios: {
pfx: '/push/apppro.p12', // Prod PFX or P12
bundleId: 'com.my.myapp',
production: true // Prod
}
},
serverURL: 'http://localhost:1337/parse' // Don't forget to change to https if needed
});

// Serve the Parse API on the /parse URL prefix
app.use('/parse', api);

app.listen(1337, function() {
console.log('parse start');
});

Steps to reproduce

curl -X POST
-H "X-Parse-Application-Id: appKey"
-H "X-Parse-Master-Key: masterKey"
-H "Content-Type: application/json"
-d '{
"where": {
"channels": {
"$in": [
"cha1",
"cha2"
]
}
},
"data": {
"title": "The Shining",
"alert": "message"
}
}'\ http://localhost/parse/push

Logs/Trace

APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Disconnected
APNS Connection 0 Connected
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Disconnected
APNS Connection 0 Connected
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg
APNS Connection 0 Notification transmitted to abcdefg

@abdox2
Copy link

abdox2 commented Mar 19, 2016

I have the same issue. it was working fine but after updating to parse server 2.2.0 GCM stop working.

im using parse android 1.13.0

@tobernguyen
Copy link
Contributor

Same issue with 2.2.0. Was working fine with 2.1.6

@abdox2
Copy link

abdox2 commented Mar 21, 2016

No one look a this yet :( . i'm using 2.1.6 because this issue

@wangmengyan95
Copy link
Contributor

I can take a look.

@wangmengyan95 wangmengyan95 added the type:bug Impaired feature or lacking behavior that is likely assumed label Mar 21, 2016
@wangmengyan95 wangmengyan95 self-assigned this Mar 21, 2016
@wangmengyan95
Copy link
Contributor

Found the case of the bug, in #1004, we delete the pushId from GCM payload, this field is not used for formal GCM payload, however, we use this info to deduplicate push notifications in Parse Android SDK. Without this field, the SDK can not work. I will add it back. cc @flovilmart @gfosco.

@vsching
Copy link

vsching commented Jul 4, 2016

Hi, this is the open source version, but does this issue applies to parse.com server as well?
Recently my android push using parse.com just doesn't work anymore. Anybody experience the same thing?

@flovilmart
Copy link
Contributor

Issues here don't apply to parse.com. Please don't report parse.com issues here but on https://parse.com/help

Le 3 juil. 2016 21:51 -0400, vschingnotifications@github.com, a écrit :

Hi, this is the open source version, but does this issue applies to parse.com server as well?
Recently my android push using parse.com just doesn't work anymore. Anybody experience the same thing?


You are receiving this because you were mentioned.
Reply to this email directly,view it on GitHub(#1104 (comment)), ormute the thread(https://github.com/notifications/unsubscribe/AAWQGHHWLl1DfmIsZEfhc3c3edZyxNR2ks5qSGcEgaJpZM4H0hxg).

@vineetbindal
Copy link

I am facing this issue, I have tried and checked everything, My GCM keys, senderId, regenerating API keys, making sure that I am using server key on server, etc, still not working. How to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Impaired feature or lacking behavior that is likely assumed
Projects
None yet
Development

No branches or pull requests

7 participants