From the course: iOS and watchOS App Development: Notifications

Unlock the full course today

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

Test the notification

Test the notification

From the course: iOS and watchOS App Development: Notifications

Start my 1-month free trial

Test the notification

- [Instructor] You now have a certificate and token. With both, you can send a notification. But there are several websites and a few Mac apps which work the same way. I'm going to use apnstester.com at apnstester.com/apns to do this. So go ahead and load that site, and you'll see several fields. At the top, you'll add your certificate by clicking the Choose File button. And as you see, it's a PEM file, so I'll choose File. And on my desktop I have the HuliAPNS.pem file, so I'll go ahead and choose that. We don't have a passphrase or password, 'cause I'm going to keep this very insecure but simple for our purposes. And then you're going to go get your Bundle ID. You're going to get that from your target settings. So if you go back to Xcode and hop over here, yours is going to be different than mine, again. Remember, our bundle identifiers are all different. So I'll go ahead and hit Copy of that. Then head back to Safari, and you can paste that in there. Then it'll ask for Device…

Contents