Notifications typically consist of a few pieces of content. First of all, every notification has a title, a subtitle, and a message body. Not all fields have to be present, but you'll often want to provide a little bit more information than just a bit of body text. You can also add media attachments to notifications. These attachments provide a preview of a photo, video, or audio file that is stored locally on the device, and are great for providing better-looking, richer notifications to your user.
Creating content for notifications is where the biggest gap between push and local notifications is present. Push notifications are always created on the server and are pushed to the device in the JSON format, while local notifications are created on the device. Let's look at each notification type separately.