# Title and SubTitle in APNS

**URL:** <https://community.parseplatform.org/t/title-and-subtitle-in-apns/3002>\
**Category:** Cloud Code\
**Tags:** push-notifications\
**Created:** [October 19, 2022, 4:56am UTC](https://community.parseplatform.org/t/title-and-subtitle-in-apns/3002 "2022-10-19T04:56:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ATrcked](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/a/9de053/32.png) [@ATrcked](https://community.parseplatform.org/u/ATrcked)\
**Post date:** [October 19, 2022, 4:56am UTC](https://community.parseplatform.org/t/title-and-subtitle-in-apns/3002/1 "2022-10-19T04:56:32Z")

</div>

In my cloud code I am doing the following to create an APNS push

```auto
                let apnsResult = await Parse.Push.send({
                    channels:[channelId],
                    data : {
                        title: "You have received a new online order #" + requestParams.data.orderId,
                        // alert: "Please view the order in the app", 
                        sound:"Notification.wav"
                    }
                }, {
                    useMasterKey: true,
                });

```

If I uncomment the ‘alert’ line then I can see the alert but not the title. If I comment out the alert then I can see the title. Is there any way, to get them to both show in the received notification?

I know its supported by Apple ([Apple Developer Documentation](https://developer.apple.com/documentation/usernotifications/unmutablenotificationcontent/1649873-subtitle)) so perhaps some kind of odd limitation in Parse Server?

---

<div class="post-metadata">

**Author:** ![ATrcked](https://community.parseplatform.org/letter_avatar_proxy/v4/letter/a/9de053/32.png) [@ATrcked](https://community.parseplatform.org/u/ATrcked)\
**Post date:** [October 23, 2022, 8:52pm UTC](https://community.parseplatform.org/t/title-and-subtitle-in-apns/3002/2 "2022-10-23T20:52:03Z")

</div>

For anyone that needs it, here is what finally made it work

```auto
                let apnsResult = await Parse.Push.send({
                    channels:[channelId],
                    data : {
                        alert: {
                            title: "You have received a new online order #" + requestParams.data.orderId,
                            body: "Please view the order in the app",                             
                        },
                        sound:"Notification.wav",
                        "push_type": "alert",
                        "content-available": 1,
                    }
                }, {
                    useMasterKey: true,
                });

```
