Questions tagged [usernotificationsui]

iOS 10 UserNotificationsUI framework

The User Notifications UI framework (UserNotificationsUI.framework) lets you customize the appearance of local and remote notifications when they appear on the user’s device. See https://developer.apple.com/reference/usernotificationsui. Do not confuse with UserNotifications framework.

8 questions
12
votes
2 answers

iOS- How to integrate push notification in iOS 10?

I have used following code for iOS 8,9 as: UIMutableUserNotificationAction *action1; action1 = [[UIMutableUserNotificationAction alloc] init]; [action1 setActivationMode:UIUserNotificationActivationModeBackground]; [action1…
8
votes
1 answer

How to handle UserNotifications Actions in iOS 10

So I am able to schedule notifications like so; //iOS 10 Notification if #available(iOS 10.0, *) { var displayDate: String { let dateFormatter = DateFormatter() dateFormatter.dateStyle = DateFormatter.Style.full return…
A.Roe
  • 973
  • 3
  • 15
  • 34
5
votes
3 answers

Programmatically defining the height of a notification content extension

The width:height ratio of a notification extension can be defined through attribute UNNotificationExtensionInitialContentSizeRatio in the extension's Info.plist file. But can this value somehow be changed after the respective UIViewController is…
DPR
  • 770
  • 1
  • 11
  • 29
2
votes
2 answers

get the URL for NSData saved in CoreData

I'm saving a UIImage to Core Data. So first, I convert it to NSData, then save it. I need to get the URL for the image after it's saved. I'm doing this because I want to schedule a local notification with an attachment, and the only way to do it,…
Ennabah
  • 2,303
  • 2
  • 20
  • 39
1
vote
0 answers

Custom buttons in IOS notifications using Notification Content Extension

IOS push notifications can be enhanced by using the following extensions: Notification Service Extension - modify/enhance the content of the notification Notification Content Extension - enhance the UI of the notification It is possible to add…
1
vote
1 answer

UNNotificationContentExtension does not update its default content footer when a new notification arrives

I have an implementation of a notification content extension which uses the default notification content (the two text lines at the bottom) provided by iOS when opened: The problem is that when a new notification arrives while the…
DPR
  • 770
  • 1
  • 11
  • 29
1
vote
1 answer

How to debug layout with Multiline UILabel / autolayout in notification content extension

How to debug the following issue? Is there a way how to work around this issue? There seems to be a bug in iOS 10.2 and below when laying out a multi-line UILabel. I have a fairly simple UIView subclass which I use in both app and notification…
0
votes
1 answer

Trigger local notification between set time with an interval daily. (eg say 10.00 am to 6.00 pm with interval of 5 minutes daily)

I am creating an app to set local notifications which can be triggered between the set time with an interval of minutes which can be selected by me. I have managed to run the local notification but dont know how to set it between a particular time…