Questions tagged [unnotificationattachment]

27 questions
1
vote
0 answers

UNNotificationAttachment video preview has wrong orientation

I'm attaching mp4 file, that was recorded using AVCaptureMovieFileOutput, to notification in UNNotificationServiceExtension Apparently, video frames is upside down and orientation is specified in metadata If I open video in notification it's played…
1
vote
1 answer

Will a UNNotificationServiceExtension Block All Other Incoming Notifications for Same App

When using a UNNotificationServiceExtension, Apple gives you 30 seconds to do your downloading / processing for the notification before it drops the hammer. Take downloading an image to be used in the rich notification for example... Say I spend 20…
1
vote
1 answer

How many images can be shown on a notification in iOS 10?

How many images can be shown on a notification in iOS 10? I've appended two images to the UNNotificationContent.attachments attribute in my UNNotificationServiceExtension. I only see one in the remote notification. Is there anyway to display more…
0
votes
0 answers

Push notification thumbnail without a larger image when hold the notification

In push notifications, when I focused on a notification, I want the small icon on the right to not scale when I long pressed the notification. Actually, my first goal is that the thumbnail doesn't disappear while it's focused(long pressed), and…
0
votes
0 answers

Copy image to temp folder but failed to read

I have issue on copy image to a temp folder then read out from this. I can copy the image to the temporary folder ( with no error thrown). I trying to read out the item list in folder. The error i received is Error Domain=NSCocoaErrorDomain Code=256…
0
votes
0 answers

Why UNNotificationAttachment(Image) is not showing on long pressing the push notification

In the app I am implementing, I am supposed to received multiple Push notifications with Images (Some times the images are reused). Once I receive the Push notifications, if I long press the push notification I am able to see the attachment. If I do…
0
votes
0 answers

UNNotificationResponse mutableCopy attachment invalid

I have a local notification working fine and it delivers notifications with a content attachment using a url referencing an image in the app bundle. That works fine. The issue I have is when I have an action that reissues the notification some time…
0
votes
1 answer

UIImage not fully loaded when retrieving UNNotificationAttachment

I have a NotificationContentExtension and want to display the NotificationAttachment in a UIImageView. That works fine but when I extend the push notification (so the NotificationContentExtension loads) it seems like the image is not fully loaded.…
0
votes
1 answer

What's a use case for a UNNotificationAttachment with an audio file?

I can't seem to find any examples or use cases for using a UNNotificationAttachment for an audio file in a UNNotificationServiceExtension. Could someone give both a code sample and a reason why it's needed? Would audio added to the attachment…
0
votes
0 answers

How to load image in push notification?

I am using UNNotificationContentExtension in my app to create a custom UI for the push notifications. The notification payload contains url for the image to be displayed. I am able to download and save the image to a temporary location. The problem…
0
votes
2 answers

What is the file size limit in temporary directory in iOS?

I am trying to save an image of size 7.9MB downloaded from here. But at line 'try data.write...' the extension crashes and I get this in console. kernel EXC_RESOURCE -> Notification Extension[3137] exceeded mem limit: ActiveHard 12 MB…
-4
votes
1 answer

Customize local notification in objective-c

How to create this type of local notification in objective-c.
Neeraj Sonaro
  • 346
  • 1
  • 16
1
2