Handle alert size

Hi @mattt,

This pull request is based on work by @mlangenberg and adds automatic truncation of APN notifications that are too long (> 256 bytes). I noticed that you added size validation to your version a few hours ago, but perhaps the automatic truncation part may be of use.

Best regards,
Steven