-
Notifications
You must be signed in to change notification settings - Fork 4
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
Started using device registration URI from patron authentication document #255
Conversation
Is this actually still relevant? The platform has been updated multiple times since this was submitted. |
@io7m hmm, you're right. If there's a more recent version of the platform then this is not needed. However, I'll use and adapt this for my next PR :D |
…feature/update-libraries-version
@io7m it's ready for review 😄 |
simplified-notifications/src/main/java/NotificationTokenHTTPCalls.kt
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good, just one small adjustment needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀
What's this do?
This PR adds logic to use the device registration URI, if any, on the patron authentication document instead of having it hardcoded. It also changes the notification http calls to be done on a background thread.
Why are we doing this? (w/ JIRA link if applicable)
There's a feature request to implement this now the backend supports it and there's a bug report saying the notification http calls are being called in the main thread.
How should this be tested? / Do these changes have associated tests?
Open the Palace app in two different devices
Logout and login (or just log in if you were not authenticated) from any library (but it has to be the same) on both devices
With one account borrow a book that only has on copy
With the other account, reserve the same book
Again with the first account, return the book
Confirm a push notification is received in the second account
Dependencies for merging? Releasing to production?
None
Have you updated the changelog?
Yes
Has the application documentation been updated for these changes?
No
Did someone actually run this code to verify it works?
Tested by @nunommts