Skip to content

Fix a bug that was introduced in PR: #591 #614

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

Merged
merged 3 commits into from
Apr 3, 2018
Merged

Fix a bug that was introduced in PR: #591 #614

merged 3 commits into from
Apr 3, 2018

Conversation

pinarx
Copy link

@pinarx pinarx commented Apr 2, 2018

Basically when the permissions are revoked and restored, do not unsubscribe from the PushSubscription, as we're using a brand new one.

Just remove the token from DB and from FCM server DB.

@pinarx
Copy link
Author

pinarx commented Apr 2, 2018

Firestore tests are failing - FYI.

@@ -80,6 +80,8 @@ export default class ControllerInterface {

const swReg = await this.getSWRegistration_();
const publicVapidKey = await this.getPublicVapidKey_();
// If there didn't exist one, this call will subscribe a new
// push subscription.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-word to:

If a PushSubscription exists it's returned, otherwise a new subscription is generated and returned.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@pinarx pinarx merged commit 4f28096 into firebase:master Apr 3, 2018
@firebase firebase locked and limited conversation to collaborators Oct 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants