'Swift - editing notification content

Is it possible to customize the notification content? I want to edit the body of the notification.

For example, if I receive:

    "aps" : {
        "alert" : {
            "title" : "Greetings",
            "body" : "My name is Bob!",
            "action-loc-key" : "HELLO"
        },
        "badge" : 5
    }

I want to present a notification with body: "Hello, I'm Bob!"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source