Skip to content

Support mutable-content #27

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

Merged
merged 3 commits into from
Aug 5, 2016
Merged

Conversation

alexanderedge
Copy link
Contributor

In iOS 10, remote notification payloads can be mutated on the client before presentation to the user, allowing for rich content to be displayed (images, video).

The key to this is a mutable-content boolean value in the payload that must be set to 1.

I have added support for mutable-content, along with a test, and updated the apn dependency.

Further information in the WWDC presentation (page 16): http://devstreaming.apple.com/videos/wwdc/2016/708tbh8wnspsg01hxwx/708/708_advanced_notifications.pdf

@alexanderedge
Copy link
Contributor Author

Looks like 1.7.8 isn't available on npmjs yet.

@flovilmart
Copy link
Contributor

flovilmart commented Aug 5, 2016

Yeah, we'll revisit when it will be available. Also, is it required? I see latest available version is 1.7.7

@alexanderedge
Copy link
Contributor Author

@flovilmart Yes, it's required as it adds a new property to the notification object. One of my PRs was merged and included in https://github.com/argon/node-apn/releases/tag/1.7.8

@flovilmart
Copy link
Contributor

@argon, seems that your release failed for 1.7.8, looks like your tags are usually vX.Y.Z maybe related ;)

@argon
Copy link

argon commented Aug 5, 2016

Oops, well spotted.I think I forgot to update the package.json

@flovilmart
Copy link
Contributor

@argon seems like it :) Thanks for your awesome job!

@argon
Copy link

argon commented Aug 5, 2016

Should be building now.

@codecov-io
Copy link

Current coverage is 88.68% (diff: 100%)

Merging #27 into master will increase coverage by 0.16%

@@             master        #27   diff @@
==========================================
  Files             5          5          
  Lines           270        274     +4   
  Methods          30         30          
  Messages          0          0          
  Branches         46         47     +1   
==========================================
+ Hits            239        243     +4   
  Misses           31         31          
  Partials          0          0          

Powered by Codecov. Last update a9089ec...660a5db

@flovilmart flovilmart merged commit 76383d9 into parse-community:master Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants