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

add event notification prefix #293

Merged
merged 5 commits into from
Jan 11, 2024

Conversation

KennyHuRadar
Copy link
Contributor

The notification identifier is currently just the eventId. This can lead to developer error as consumers of the SDK may also be listening to radarEvents to generate notifications. In particular, it may seem intuitive to the developer to use the eventId as the identifier of the notification. However, we are also doing the same thing. Registering 2 notifications with the same identifier at the same time will the cause the first notification to be dropped silently.

This PR fixes this issue by prefixing the identifier with another string to avoid such conflicts.

QA: successfully generate notifications with waypoint.
image

@KennyHuRadar KennyHuRadar marked this pull request as ready for review January 8, 2024 19:51
@KennyHuRadar KennyHuRadar requested a review from lmeier January 8, 2024 19:51
Copy link
Contributor

@lmeier lmeier left a comment

Choose a reason for hiding this comment

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

bump version

@KennyHuRadar KennyHuRadar requested a review from lmeier January 10, 2024 16:30
Copy link
Contributor

@lmeier lmeier left a comment

Choose a reason for hiding this comment

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

2 small nits, but other than that, good, let's ship this today

@KennyHuRadar KennyHuRadar requested a review from lmeier January 11, 2024 16:46
@KennyHuRadar KennyHuRadar merged commit 7669d45 into master Jan 11, 2024
1 check passed
@KennyHuRadar KennyHuRadar deleted the add-prefix-to-notification-identifier branch January 11, 2024 20:26
ShiCheng-Lu pushed a commit that referenced this pull request Jun 13, 2024
* Bump play services location

* Bump version to 3.8.0
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.

2 participants