File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -35,12 +35,13 @@ - (void)populateNotificationContent:(UNMutableNotificationContent *)content
35
35
self.contentHandler = [contentHandler copy ];
36
36
self.bestAttemptContent = content;
37
37
38
- NSString *currentImageURL = content.userInfo [kPayloadOptionsName ][kPayloadOptionsImageURLName ];
38
+ // The `userInfo` property isn't available on newer versions of tvOS.
39
+ #if TARGET_OS_IOS || TARGET_OS_OSX
40
+ NSString *currentImageURL = content.userInfo [kPayloadOptionsName ][kPayloadOptionsImageURLName ];
39
41
if (!currentImageURL) {
40
42
[self deliverNotification ];
41
43
return ;
42
44
}
43
- #if TARGET_OS_IOS || TARGET_OS_OSX
44
45
NSURL *attachmentURL = [NSURL URLWithString: currentImageURL];
45
46
if (attachmentURL) {
46
47
[self loadAttachmentForURL: attachmentURL
You can’t perform that action at this time.
0 commit comments