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

Android device still receives push from old installationId after app re-install #1705

Closed
jiawenzhang opened this issue May 5, 2016 · 4 comments

Comments

@jiawenzhang
Copy link

  1. install the app on Android phone, signup a new user A in Parse, get installationId_1
  2. uninstall the app and re-install the app on the same phone, login into the previously created user A, get installationId_2

note that the app on this phone is now associated with installationId_2

now from parse server cloud code, send push notification targeting installationId_1, the app still receives the push even when its installationId is not installationId_1.

@xor22h
Copy link

xor22h commented May 6, 2016

Probably both installationsId's have the same GCMToken as it's still the same phone. GCMToken is provided by google play services library which you are not reinstalling, so it may return the same GCMToken. So even if you target installation_1, all other installations which includes same GCMToken will still receive the same notification;

@jiawenzhang
Copy link
Author

@xor22h the "deviceToken" for the two installations are different. I believe the "deviceToken" is the GCMToken.

@flovilmart
Copy link
Contributor

I'm closing this here for now, please update parse-server to the latest version. If the issue is still here, please open on parse-server-push-adapter.

@macmoe
Copy link

macmoe commented Sep 30, 2016

I'm experiencing the same issue and have created parse-community/parse-server-push-adapter#40

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