Questions tagged [unnotificationrequest]

A UNNotificationRequest is a new Cocoa Touch notification object introduced with iOS 10.

UNNotificationRequest is a replacement for UILocalNotification. Use this tag only for questions related to UNNotificationRequest from the UserNotifications module.

UNNotificationRequest class reference`

112 questions
0
votes
1 answer

Unable to get repeating daily notification to show with UNUserNotificationCenter

My goal is to set up a repeating daily reminder notification. The following code always successfully show the notification once, but does not repeat it, despite setting repeat: true in the code. The entire notification code is below: let…
0
votes
1 answer

Calling removeAllPendingNotificationRequests() in applicationWillTerminate not working on iPad

I set up a dummy project to reproduce the issue I'm seeing. In my ContentView, I schedule some repeating notifications. struct ContentView: View { var body: some View { VStack { Button("Schedule notifications") { …
0
votes
1 answer

How to set UNCalendarNotificationTrigger for workweek (Monday to Friday) in Swift?

Using iOS13.4, XCode11.4, Swift5.2, How can you set up a Local Notification that will trigger on every workday (i.e. Monday through Friday, but not Saturday and Sunday) ?? I tried different Calendar-Component setups but have not been successful for…
iKK
  • 6,394
  • 10
  • 58
  • 131
0
votes
1 answer

Repeating iOS Notification

Is there any way to schedule local notification which fires at specific date and the repeats every minute? Example: user receive first notification at 8:00 AM and then 8:01, 8:02...
0
votes
0 answers

Scheduling Limitations with Local UNNotificationRequest

There seem to be some valid use-cases for Local Notifications that aren't possible with UNNotificationRequest and it's associated triggers: UNTimeIntervalNotificationTrigger and UNCalendarNotificationTrigger. For example, I'd like to send a local…
paiego
  • 3,619
  • 34
  • 43
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…
0
votes
2 answers

How to send local notification UNTimeInterval starting at specific time in swift [iOS]

I want to send a local notification every 8 hours starting at specific time. For example, now we are at 10 o'clock in the morning, but I want you to notify me every 8h starting at 12 o'clock, how I can do that. I have this code: let content:…
0
votes
1 answer

How would I set up the view when the user taps the View button on a local notification in iOS?

I would like to set up my local notification on my iOS app so that when the user swipes left and then taps on View, the message on the notification shows in the view that appears. I want to do this because if the message is long, it is cut off so…
0
votes
1 answer

UNNotificationAction Handler on Low Power Mode

I am using Local Notifications with UNNotificationAction, when the user triggers the action I need to send an API request to the server. When the device is on Low power mode and Background App Refresh is turned off and the app is killed, I get a…
0
votes
1 answer

at UNNotification I get different userInfo values than set values in UNNotificationRequest Swift

I have a function that sets the UNNotificationRequest with some parameter passed in, I than put those parameters in userInfoso I can get them back and use them when opening the local notification. The print of it shows I'm assigning correct values…
0
votes
1 answer

Repeat Local Notification at a specific time and after same time at intervals

It could be duplicate of Question asked - Repeating local notification daily at a set time with swift But UILocalNotifications are deprecated iOS 10 I am working on alarm app, I need 2 things 1. local notification on a time 2. Repeat after a time…
Jatin Garg
  • 206
  • 1
  • 12
0
votes
1 answer

UNUserNotification not get removed from pending notification when repeat is set to yes - Swift

I have been building the remainder app setting remainder at a particular time with or without repeat mode. I have been struggling to solve one issue. any help would be helpful to get it resolved. Here is the scenario that I am facing When the…
Aravindh Kumar
  • 1,213
  • 11
  • 22
0
votes
1 answer

Local Notification for specific date and time is not working. Swift

I am trying to trigger a local notification on a specific date and time on button click but it's not working. Below is the code: @IBAction func setReminderBtnPressed (_ sender: UIButton) { var dateString = String() dateString = "2018-10-20…
Shiv Jaiswal
  • 539
  • 1
  • 6
  • 22
0
votes
1 answer

Notification not displayed with action buttons when app is killed ios

I've done following code to display action buttons while notification comes using one signal. But when app is killed notification is not coming. It's working properly in background/foreground mode. But when app is not in tray even notification stop…
Shah Paneri
  • 729
  • 7
  • 28
0
votes
3 answers

Repeating local notification removes previous pending local notifications

I want to send local notification after every 30 minutes. I have implemented repeating local notification but it removes the preceding local notifications. The scenario is as explained : My client wants to get night alerts. He wants that when he…