From the course: Apple watchOS 7 App Development Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

The push payload

The push payload - watchOS Tutorial

From the course: Apple watchOS 7 App Development Essential Training

Start my 1-month free trial

The push payload

- With some understanding of local notifications, We're reading to understand how to populate push notifications. So, go ahead and run a push notification. We get our cool push notification like we have before, but this time, instead of dismissing it, I'm going to click quickly on the crown and you'll see we have a small dot here, which means we've got notifications pending, so I can scroll down here and you can see we have a couple of them, but what we have here is a message and it says optional title, subtitle test message and we're done just right now. So this is our message and this is coming from the push notification and the data within it. So let's look at where that data is. So I'm going to click on this one and you can see we've got a whole bunch of these, I'm going to clear them. So everything is nice and clean again, we can go back to watch face and I'll stop that. Now all of this happens down here and…

Contents