Questions tagged [unnotificationscontentextension]

The UNNotificationContentExtension protocol provides the entry point for a notification content app extension, which displays a custom interface for your app’s notifications.

UNnotificationscontentextension is one of the extensions that can be added to a regular iOS app. It would be like a small separate app that can process UNNotifications arriving to the app.

One reason for adding this extension is that even when the associated iOS app is not running, the extension can receive the UNNotification and process it, including changing/setting the badge number.

It can share data with the associated iOS app through a shared UserDefaults.

7 questions
1
vote
1 answer

UNNotificationAction sometimes not showing in remote notification

I have registered the UNNotificationAction's in appdelegate with the identifier, also i have added that identifier in info.plist in notification extension. Buttons are visible if i install the app, after killing the app buttons are not visible. Also…
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

Customise Font style of Title and Subtitle in Notification in swift

Hey Devs I have been working on Customised Notifications. For that I have NotificationContentExtension for customisation of UI. I am able to customize almost UI part but unable to change font of Title, Subtitle Label with SF-Pro Text Font. Note:- I…
Kudos
  • 1,224
  • 9
  • 21
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

Navigate to specific view controller from NotificationContent Extension - iOS

I have implemented custom UI for push notification using Notification Content Extension. I have added an "View" action as below let navigateAction = UNNotificationAction(identifier: "ActionNotification", title: "View", options: []) let…
0
votes
1 answer

Notification Content not get called even storyboard of content is updated

I am trying to make push notification with image. Below is the push I am sending from pushtry.com { "aps": { "alert": "message with meow image 11", "badge": 1, "sound": "default", "category": "DCCPush", "mutable-content": "1" …
-1
votes
1 answer

iOS: How to display a banner notification with a dark theme

I want to display a banner notification with a dark background and light text. iOS naturally does this if the phone is using dark mode. However, in light mode, when I use WhatsApp, I noticed banners have a dark theme as long as they are displayed…