-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
fix: APN notification topic not composed based on push type #347
Conversation
Thanks for opening this pull request!
|
@mtrezza this PR is ready for review. After you approve the workflow to run, I'll address any test-passing issues. The tests currently pass on my local machine, but it's possible there can be failures since the CI uses older versions of Node. |
Don’t merge yet, should have an additional commit up within the next hour |
@mtrezza I'm finished with my updates, ready for your review |
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.
Is there a breaking change in this, since it now updates the topic based on push type?
I don't believe the changes are breaking, but let me know what you think based on my explanation below: The current topic comes from the first device ( parse-server-push-adapter/src/APNS.js Lines 86 to 105 in 3cb34c4
This method is called from the PushAdapter here: parse-server-push-adapter/src/ParsePushAdapter.js Lines 68 to 87 in 3cb34c4
My thought is, "technically", this value comes directly from the first I guess that other developers who have Definitely let me know if you agree/disagree, as this is just my opinion. |
In addition, the code changes pass all the old tests without modification. Which can be used as a lightweight indicator of "non-breaking," but that depends on the test suite's robustness in capturing the library's current expectations. |
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.
I think we can merge as non-breaking, with a proper description in the changelog. I actually looks like a bug fix, so how about:
fix: APN notification topic not composed based on push type
LGTM! |
## [6.9.1](6.9.0...6.9.1) (2025-01-01) ### Bug Fixes * APN notification topic not composed based on push type ([#347](#347)) ([9905c34](9905c34))
🎉 This change has been released in version 6.9.1 |
New Pull Request Checklist
Issue Description
An APN notification
topic
currently stays as thetopic
initialized by the Parse-Server (_Installation.appIdentifier
) and isn't updated based onpushType
. Based on the Apple Documentation, a specificpushType
may require atopic
to change.In addition, the notification header determined by
parse-server-push-adapter
currently has the highest priority. This makes it harder for the developer to specify particular header information in Cloud Code to prioritize overparse-server-push-adapter
header information (parse-server running in memory). This is also useful when Apple updates/adds new notification types and allows devs to add updates to their respective Cloud Code dynamically and adapt the latest features.Closes: #348
Approach
topic
based onpushType
TODOs before merging