strongloop/loopback-component-push

Trim Notifications if body is too long

Closed this issue · 4 comments

In particular, for APNs:

Apple Push Notification service refuses any notification that exceeds this limit.

node-apn has a method Notification.prototype.trim to deal with this.

It would be good to trim the message by default and/or configure this behavior. Which may happen somewhere in apns.js by adding note.trim().

Hi, any thoughts on this?

@voitau Would you like to submit a PR instead?

@voitau What do you think about submitting a PR?

Closing as abandoned. If you are still interested in working on this in the future, just ping and we can reopen it then.