# Rich Notifications with iOS 10 #

This repository is the sample app for the article in Mac & I about Rich Notifications.

## Sending Remote Notifications from the desktop ##
With the macOS app [Pusher](https://github.com/noodlewerk/NWPusher) you can trigger Remote Notifications from your desktop.

## Example Payloads ##
* Sending an image URL with payload
~~~~
{
    "aps":
    {
        "alert":
        {
            "title": "Ein erstes Attachment",
            "subtitle": "iOS 10 macht es möglich",
            "body": "iOS 10 Notifications, jetzt auch mit Bildern..."
        },
        "mutable-content":1		
    },
    "my-image":"http://www.heise.de/icons/ho/heise_online_facebook_social_graph.png"
}
~~~~
* Sending a payload that shows a custom UI
~~~~
{
    "aps":
    {
        "alert":
        {
            "title": "Ein erstes Attachment",
            "subtitle": "iOS 10 macht es möglich",
            "body": "iOS 10 Notifications, jetzt auch mit Bildern..."
        },
        "mutable-content":1,
        "category":"categoryRemote"
    },
    "my-image":"http://www.heise.de/icons/ho/heise_online_facebook_social_graph.png"
}
~~~~