parse-community / parse-server-push-adapter

A push notification adapter for Parse Server
https://parseplatform.org
MIT License
87 stars 99 forks source link

Support `mutable-content` #27

Closed alexanderedge closed 8 years ago

alexanderedge commented 8 years ago

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 commented 8 years ago

Looks like 1.7.8 isn't available on npmjs yet.

flovilmart commented 8 years ago

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

alexanderedge commented 8 years ago

@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 commented 8 years ago

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

argon commented 8 years ago

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

flovilmart commented 8 years ago

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

argon commented 8 years ago

Should be building now.

codecov-io commented 8 years ago

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