Questions tagged [usernotifications]

iOS 10, macOS 10.14, Mac Catalyst 13, tvOS 10 and watchOS 3 UserNotifications framework

The UserNotifications framework (UserNotifications.framework) supports the delivery and handling of local and remote notifications starting in iOS 10, macOS 10.14, Mac Catalyst 13, tvOS 10 and watchOS 3. Class names start with "UN". See https://developer.apple.com/reference/usernotifications.

182 questions
4
votes
0 answers

iOS 10: detect if user notification has arrived

I am writing a reminder app in iOS 10; my local notifications are send using the UserNotifications framework. Sending the notification works fine already; my problem is rather the background handling of the notification. Earlier days, you could use…
Carl Henretti
  • 457
  • 2
  • 7
  • 17
4
votes
2 answers

Why only my last local notification function is getting called?

I'm fairly new to swift and am trying to call multiple functions that request a local notification inside a UISwitch IBAction. I want to send a notification on a certain date - each quarter of the year on months 4, 7, 10, 1. Only the fourth quarter…
nsd32
  • 63
  • 6
4
votes
2 answers

iOS 10: How to show incoming VOIP call notification when app is in background?

I'm working on audio/video call and trying to get incoming call notification loop for 1 minute like WhatsApp shows in iOS when app is background, Notification banner hide and show with ringtone for 1 minute. I have tried this code, it triggers only…
Abhishek Thapliyal
  • 3,497
  • 6
  • 30
  • 69
4
votes
1 answer

swift user notifications: why is nextTriggerDate nil?

When I run the following (on January 7 2017): let dateComponents = Calendar.current.dateComponents(in: TimeZone.current, from: date) print("dateComponents = \(dateComponents)") let trigger =…
ragnarius
  • 5,642
  • 10
  • 47
  • 68
4
votes
1 answer

Is there still a ~64 local notification limit for the new UserNotifications in iOS 10?

In everything before iOS 9 there was a limit of 64 notifications that could be scheduled at any one time. Is this still true with the new notification system or can I schedule as many in advance as I'd like with the new UNUserNotifications?
Landon Tetreault
  • 115
  • 1
  • 10
4
votes
2 answers

Multiple UNUserNotifications not firing

I'm setting multiple UNUsernotifications as below, - (void)viewDidLoad { [super viewDidLoad]; notifCount = 0; UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; [center…
Nazik
  • 8,696
  • 27
  • 77
  • 123
4
votes
1 answer

UNUserNotificationCenterDelegate methods not being called Xcode 8 iOS 10

I have followed all the steps exactly as mentioned here: Push notification issue with iOS 10. But unfortunately, these two methods are not being called: -(void)userNotificationCenter:(UNUserNotificationCenter *)center…
4
votes
2 answers

How to show local notification when app is foreground

How to show local notification always, even in foreground, using new (from iOS 10) notification framework UserNotifications https://developer.apple.com/reference/usernotifications?language=objc ?
Konstantin.Efimenko
  • 1,242
  • 1
  • 14
  • 38
4
votes
2 answers

How to use UNNotificationPresentationOptions

In iOS 10 , there is an option for presenting the notification when the app is in foreground using UNNotificationPresentationOptions, but i couldn't find any sample on how to use this, please suggest some idea about how to implement this feature
satheesh
  • 2,770
  • 2
  • 14
  • 19
4
votes
0 answers

How to replace displayed notifications in iOS 10 using UserNotifications framework

I'm building a reminders app that sends local notifications that repeat based on a user's custom settings. For example, I may send a notification every other day at 8pm. Every time I send one of these notifications, I'd like to replace any previous…
Brent Traut
  • 5,614
  • 6
  • 29
  • 54
3
votes
1 answer

Getting Couldn’t communicate with a helper application. When trying to save a LocalNotification

Im gettin Couldn't comunicate with a helper application in the console when I'm trying to save a local notification in UNUserNotificationCenter with userInfo. If I remove de userInfo instruccion works perfectly. This is the class that implement…
jpgpineda
  • 53
  • 5
3
votes
1 answer

How to redirect to detail view of cell in List when tapped on that notification using SwiftUI?

I have List in Content View & List is connected to Detail View by Navigation Link. I am using User Notifications with SwiftUI I want to automatically redirect to Detail View when tapped on Notification From App Delegate: func…
Dc7
  • 1,405
  • 1
  • 10
  • 16
3
votes
1 answer

iOS 13: Announce messages with Siri

I want to implement the "announce messages with Siri" feature for my own app. I haven't seen any app that is able to do it except for Messages from Apple. So I don't know if its already available. Apple announced it without any limitations explicit…
user1199624
3
votes
0 answers

Sequence of calling registerForRemoteNotifications and requestAuthorization

When should I call registerForRemoteNotifications()? In completion handler of requestAuthorization(options:completionHandler:) ? In application(_:didFinishLaunchingWithOptions:) ?
Maq
  • 369
  • 3
  • 13
3
votes
0 answers

UNTextInputNotificationAction change keyboard type

I implemented custom actions for my notifications via UserNotifications framework. I used UNTextInputNotificationAction in order to let the user input some text. Is there a way to define a different keyboardType like on a UITextField for…
JonEasy
  • 921
  • 10
  • 22
1 2
3
12 13