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

Getting multiple Push Notifications #2044

Closed
ghost opened this issue Jun 12, 2016 · 7 comments
Closed

Getting multiple Push Notifications #2044

ghost opened this issue Jun 12, 2016 · 7 comments
Labels
type:question Support or code-level question

Comments

@ghost
Copy link

ghost commented Jun 12, 2016

Issue Description

Testing my app using parse-server I get the same push notification 5 times. I already tried logging out and logging in to Facebook, deleting app data and uninstalling the app. I have never experienced this using parse.com.
Googling around a bit, it seems that the problem might be related to old GCM tokens.

Steps to reproduce

Please include a detailed list of steps that reproduce the issue. Include curl commands when applicable.

  1. Use parse-server push (native)
  2. Reinstall and restart app multiple times
  3. Send push notification to device

Expected Results

Notifcation should be received once

Actual Outcome

Notification is received multiple times

Environment Setup

  • Server
    • parse-server version: 2.2.11
    • Heroku sandbox
  • Database
    • mLab sandbox

in database:
"numSent": 1


Might be related to:
#2009

But I'm not switching user accounts.

Any ideas?

@otymartin
Copy link

otymartin commented Jun 13, 2016

Just started the same problem in the last 3 hours. I just managed to get push notifications working with OneSignal

@MattiaConfalonieri
Copy link

MattiaConfalonieri commented Jun 14, 2016

I have the same problem with Parse server version 2.2.13 , how ca i fix that?

Until two days ago i don't have this problem...

@kwstasna
Copy link

I get an error with GCM push notifications : 401
Although i get notifications in iOS, i dont get them in Android.
2 weeks ago it was working great!

@pinguineras
Copy link

im using the 2.2.13 version and experienced errors like that.

@hramos
Copy link
Contributor

hramos commented Jun 24, 2016

It would be useful to get a clear list of repro steps from everyone who has run into this, in order to make sure these are not different issues you are each running into.

@kwstasna
Copy link

I solved the issue by doing those steps.

  1. made another GCM key
  2. replaced it with the previous one inside index.js
  3. restarted parse-server
  4. waited 10minutes and then the push notifications were sent to android users (the ios users had no problem at all that's why it had something to do with GCM key i thought)

@flovilmart
Copy link
Contributor

Let's close that one for now as @kwstasna provided a workaround. Not sure what's going on with GCM or what could cause push to be sent duplicated. If they are properly sent in iOS, that may be a problem with either the GCM configuration (as exposed in the workaround) or in the push adapter itself. If it happens to be the latter, please reopen the issue on https://github.com/parse-server-modules/parse-server-push-adapter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question Support or code-level question
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants