From the course: iOS and watchOS App Development: Notifications

Unlock the full course today

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

Test the image from the web

Test the image from the web

From the course: iOS and watchOS App Development: Notifications

Start my 1-month free trial

Test the image from the web

- [Narrator] You are almost ready to run this. However, there is a security issue I want you to remember. This doesn't work with your images. It's actually not going to work with this one. And here is the little culprit, http. The App Transport Security service will block images with http only. It's best to use a secure URL with https. You could try to work around this with an info.p list setting in your extension. So, if we go over here, in the extension go the info.p list. And what we're going to do is all the way at the top where it says Information Property List, hit that plus. And you'll scroll up 'til you find the App Transport Security Settings. De-select it. And you'll see a little arrow here. Put that down. And then hit the plus there, and you'll find one that says Allow Arbitrary Loads. Click that. And over where it says Boolean, type yes. And make sure you're doing this in the extension, because it won't help you much if you do it in the app itself. Okay, so we've got that…

Contents