-
-
Notifications
You must be signed in to change notification settings - Fork 105
feat: add support for APNS interruption-level
and target-content-id
#197
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
Conversation
@mman Do you want to fix the failing tests to get this ready for review? I'll update to node-apns 5 today as well for a new release. |
@mtrezza the tests should pass once the updated node-apn is installed. I will take a look tomorrow European time… |
@mtrezza Looks like the node apn version 5 was released but does not contain the necessary changes that are in node apn master. 5.0.1 will be needed I guess parse-community/node-apn@5.0.0...master |
@mman released 5.1.0 |
@mtrezza JavaScript and npm are not my best friends, but I believe that npm was sticking to 5.0.x updates only and that is why it would not pick up 5.1. So I updated |
Did you do that with |
I used /me going to check what npm i -E does |
Sorry for the confusion; I mean to ask whether you installed the package using |
I edited the I am not a JavaScript/npm guru so feel free to do whatever is needed to cleanup the PR in a way suitable for merge. The key is that in order for tests to pass, |
That's probably why this PR contains such 6k lines of change. What you want to do is:
Regenerating the whole |
@mtrezza I did precisely that and the results appear to be the same, the
|
I notice you are also on npm 8, that's another reason why there are so many changes. Can you downgrade to node 12 to upgrade the dependency? We always make changes in the lowest supported npm version to ensure backward compatibility. |
That seems to have done the trick. Thanks for your help, although I will not claim I understand why npm behaves this way.
|
The reason is that npm >=7 uses another dependency management tree; you can see that the lock file has version 2 instead of version 1. That causes many changes. If you want to find out more you can search online for the difference between lock file versions 1 and 2. |
@mman Is this ready for review? |
Yes please |
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!
interruption-level
and target-content-id
# [4.1.0](4.0.0...4.1.0) (2021-11-21) ### Features * add support for APNS `interruption-level` and `target-content-id` ([#197](#197)) ([e0541ec](e0541ec))
🎉 This change has been released in version 4.1.0 |
# [4.1.0](4.0.0...4.1.0) (2021-11-21) ### Features * add support for APNS `interruption-level` and `target-content-id` ([#197](#197)) ([e0541ec](e0541ec))
🎉 This change has been released in version 4.1.0 |
This PR along with parse-community/node-apn#87 adds support for specification of
target-content-id
andinterruption-level
in APNS push notification payload to address #196 and #155.