-
Notifications
You must be signed in to change notification settings - Fork 14
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
localize follows notification #1446 #1483
Conversation
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.
Looks good from a code perspective, but as you said, no way to test.
We should be able to test this with the push notifications test tool: https://icloud.developer.apple.com/dashboard/notifications/teams/GZCZBKH7MY/app/com.verse.Nos-dev/notifications/61c747f2-d8f2-4fcf-af7c-b777034782ad/environment/DEVELOPMENT/tracking/21b48cd5-6904-c5c6-5076-8c965c8b50e5 |
Here's what I did to test this (since I don't see the steps documented anywhere):
|
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.
Works for me!
Thanks for this, @joshuatbrown! I should've put this together. Sorry about that. I added these steps to a new documentation in Notion called How to Test Push Notifications. |
# Conflicts: # CHANGELOG.md
Issues covered
#1446
Description
Adds new localized strings to support localization of the follows push notifications. This change is only part of what's required to achieve the desired result, because the notifications will also need to be updated on the server side. I discussed this with @dcadenas, and he will be making the required server-side changes.
Unfortunately this can't truly be tested until the server-side changes are made, and these changes have no effect in the app until they are made.Thanks to @mplorentz and @dcadenas for helping me test this!
Note: I wasn't able to use plural variants with the "You have x new followers!" string as I'd hoped. I tried initially and had "%i" for the wildcard, but when I tested it, the notification said only "@value@". The documentation for the "loc-args" key implies that you can only use strings:
Screenshots: