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

Feature: Add version code to push notification registrattion #444

Conversation

FelberMartin
Copy link
Collaborator

Problem Description

With a recent API change, the server expects the app version to be send along the push notification registration call. See ls1intum/Artemis#10384

Changes

  • Introduce AppVersion and AppVersionProvider to easily access the app version in the app without having to pass it all the way from the app module
  • Add NormalizedAppVersion to be used in modified API call and in the force-update feature
  • Added unit tests

Steps for testing

See that updating the push notification settings still works as expected

@FelberMartin FelberMartin added the ready for review This PR can be reviewed label Feb 28, 2025
@FelberMartin FelberMartin self-assigned this Feb 28, 2025
Copy link
Contributor

@eylulnc eylulnc left a comment

Choose a reason for hiding this comment

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

Code lgtm.
Notification settings works as before.

Copy link
Contributor

@julian-wls julian-wls left a comment

Choose a reason for hiding this comment

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

Works as expected.
Code lgtm

@FelberMartin FelberMartin added ready to merge This PR can be merged and removed ready for review This PR can be reviewed labels Mar 7, 2025
@FelberMartin FelberMartin merged commit 78e059c into develop Mar 7, 2025
4 of 5 checks passed
@FelberMartin FelberMartin deleted the feature/add-version-code-to-push-notification-registrattion branch March 7, 2025 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready to merge This PR can be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants