Skip to content

refactor: reset push token on logout#13525

Open
gkartalis wants to merge 3 commits into
mainfrom
gkartalis/PHIRE-3028
Open

refactor: reset push token on logout#13525
gkartalis wants to merge 3 commits into
mainfrom
gkartalis/PHIRE-3028

Conversation

@gkartalis
Copy link
Copy Markdown
Member

@gkartalis gkartalis commented Apr 27, 2026

This PR resolves PHIRE-3028

Description

This PR is about reseting the push token anytime a user logs out of the app so multiple users can use the app without conflicts on their notifications.

Also users on logging out stop receiving notifications.

It is more of a conversation starter PR to make sure that we do want this behavior or not.

On the end of this PR we can find the latest betas that we can use in order to test this.

PR Checklist

  • I have tested my changes on the following platforms:
    • Android.
    • iOS.
  • I hid my changes behind a feature flag, or they don't need one.
  • I have included screenshots or videos at least on Android, or I have not changed the UI.
  • I have added tests, or my changes don't require any.
  • I added an app state migration, or my changes do not require one.
  • I have documented any follow-up work that this PR will require, or it does not require any.
  • I have added a changelog entry below, or my changes do not require one.

To the reviewers 👀

  • I would like at least one of the reviewers to run this PR on the simulator or device.
Changelog updates

Changelog updates

Cross-platform user-facing changes

iOS user-facing changes

Android user-facing changes

Dev changes

  • reset push token on logout

Need help with something? Have a look at our docs, or get in touch with us.

@gkartalis gkartalis self-assigned this Apr 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 27, 2026

🎉 Beta Versions Generated (commit: 3d55d97)

Android 🤖

  • 9.8.0 (2026042708) - Available on Firebase
  • 9.8.0 (2026042708) - Available on Play Store

iOS 🍏

  • 9.8.0 (2026.04.27.08) - Available on TestFlight
  • 9.8.0 (2026.04.27.08) - Available on Firebase

@artsy artsy deleted a comment from ArtsyOpenSource Apr 28, 2026
@gkartalis gkartalis force-pushed the gkartalis/PHIRE-3028 branch from 08a9359 to 5e787a8 Compare April 28, 2026 08:30
@artsy artsy deleted a comment from ArtsyOpenSource Apr 28, 2026
@ArtsyOpenSource
Copy link
Copy Markdown
Contributor

This PR contains the following changes:

  • Dev changes (reset push token on logout - gkartalis)

Generated by 🚫 dangerJS against f9763e8

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 28, 2026

🎉 Beta Versions Generated (commit: f9763e8)

Android 🤖

  • 9.8.0 (2026042813) - Available on Firebase
  • 9.8.0 (2026042813) - Available on Play Store

iOS 🍏

  • 9.8.0 (2026.04.28.13) - Available on Firebase
  • 9.8.0 (2026.04.28.13) - Available on TestFlight

Copy link
Copy Markdown
Member

@MounirDhahri MounirDhahri left a comment

Choose a reason for hiding this comment

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

LGTM! I think without the API call to delete the token, we can never be sure.

}

try {
await fetch(new Request(url, { method: "DELETE", headers }))
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nice

Copy link
Copy Markdown
Member

@MrSltun MrSltun left a comment

Choose a reason for hiding this comment

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

I like it 🌟
Let's test and see if it works :)

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

Successfully merging this pull request may close these issues.

4 participants