parse-community / parse-server-push-adapter

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

Support title payload on iOS notifications #73

Closed gfpacheco closed 7 years ago

gfpacheco commented 7 years ago

About the push notification title parameter, the docs says it's only sent to Android devices, but it's supported since iOS 8.2.

I was wondering if Parse really doesn't send it for iOS devices or it's just the docs that are outdated, but I couldn't find any mention to it in the source files.

Is it planned or was it discarded for some reason? Should I try to make a PR?

flovilmart commented 7 years ago

I'm not sure, but title is a property of "alert" when you set it as a dictionary, and it's just passed as-is: https://github.com/parse-server-modules/parse-server-push-adapter/blob/master/src/APNS.js#L177

natanrolnik commented 7 years ago

It can be done already as @flovilmart suggested.