parse-community / parse-server-push-adapter

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

Update APNS.js - Add iOS Notification Title #78

Closed polo2244 closed 7 years ago

polo2244 commented 7 years ago

As of iOS 8.2 Apple added the ability to send a "title" attribute with notifications. APNS notification can now look like this: {
"aps": { "alert": { "title": "notification_title", "body": "notification_content" } }, User-defined key-value pairs }

Therefore sending a title attribute with Parse-Push on iOS need to be added within the "alert" statement and not the "User-defined key-value pairs" to be properly displayed by iOS devices.

codecov[bot] commented 7 years ago

Codecov Report

Merging #78 into master will decrease coverage by 0.79%. The diff coverage is 0%.

Impacted file tree graph

@@           Coverage Diff            @@
##           master     #78     +/-   ##
========================================
- Coverage     100%   99.2%   -0.8%     
========================================
  Files           5       5             
  Lines         249     251      +2     
========================================
  Hits          249     249             
- Misses          0       2      +2
Impacted Files Coverage Δ
src/APNS.js 98.23% <0%> (-1.77%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 68c9742...5b74965. Read the comment docs.