Questions tagged [unnotificationtrigger]
37 questions
2
votes
1 answer
Swift UNNotification - Repeat Interval after Fire Date
I'm sending a local notification to the user with a UNUserNotification. I want to first send a notification at a starting time I'm calculating from a Time Picker. After this first notification, I want to send a reminder every 15 minutes. Is there…

Philipp Rosengart
- 713
- 1
- 8
- 20
2
votes
1 answer
UNNotificationTrigger about fireDate
In iOS 10 I use new frameWork UNNotification .When setting UNNotificationTrigger I want to set a fire Date on UNNotification. But I can't find set a fire Date in UNNotificationTrigger's properties. So How can i set a fire Date in…

Tuesz
- 31
- 4
1
vote
1 answer
How to set a local notification to fire on the last day of each month using UNNotificationRequest?
I was trying to set up local notifications to fire on the last day of each month regardless of whether it's the 28th, 29th, 30th, or 31st.
With the previous framework UILocalNotification I could specify the fireDate and repeatInterval and it worked.…

Bonan
- 709
- 4
- 18
1
vote
0 answers
Making use of UNLocationNotificationTrigger
I am trying to implement location-triggered-notification in an iOS app, which I recently started using SwiftUI.
As a first experimenting step, I have a button. And when tapped it should create a notification intented to fire once I get close to a…

Michel
- 10,303
- 17
- 82
- 179
1
vote
0 answers
How to repeat local notification each day starting from tomorrow
I need to schedule local notifications which I'd like to repeat each day from lets say at 23:00. But I do not want to start from today but from tomorrow.
If I schedule them using UNCalendarNotificationTrigger:
var dateInfo =…

plamkata__
- 729
- 5
- 13
1
vote
1 answer
Trigger notification when moving to another city
I want to trigger a notification everytime the current city changes based on didUpdateLocations:
func locationManager(_ manager: CLLocationManager, didUpdateLocations locations: [CLLocation]) {
let lastLocation = locations.last!
…

Sinan Samet
- 6,432
- 12
- 50
- 93
1
vote
0 answers
UNUserNotification for next 15 days for taking medicine
I have a scenario where I want to add a local reminder of medication. The reminder can be daily or weekly of all medication which I used and duration of medicine can be in months. I already know that there is only 64 notification/app limit in iOS.…

Syed Abdul Basit
- 101
- 2
- 4
1
vote
0 answers
IOS/Objective-C: UNNotificationRequest: How to handle time zones
The old (pre IOS10.0) API for notifications had a property for timezone so that the notification would adjust to time zones.
The new API UNNotifications does not seem to have a time zone property.
Does this mean, you are just supposed to ignore time…

user6631314
- 1,751
- 1
- 13
- 44
1
vote
0 answers
Triggering UNUserNotification Trigger with Changing Repeat Interval
I've gone through all of Apple's Documentation on the new User Notification framework and I am officially stumped.
I need to set up a UNNotificationRequest to trigger after X days. This can be easily accomplished with the…

faircloud
- 687
- 6
- 14
0
votes
0 answers
How to fix repeated duplicate notifications problem in macOS app
I have created a UNNotificationRequest with following code in a macOS app
let content = UNMutableNotificationContent()
content.title = "Welcome"
content.body = "body"
content.sound = UNNotificationSound.default
…

asdfg
- 3
- 4
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") {
…

Eugene Kent
- 11
- 1
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...

Volodymyr Hanas
- 51
- 4
0
votes
1 answer
Local Notification not working in iOS 10.3.1
I have an app which will send a local notification for specific location change when the app is in background or not running. Im using region monitoring to get location changes and create notification request if needed. My problem is the…

prabhu
- 1,158
- 1
- 12
- 27
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…

Pooja Mishra
- 17
- 1
- 8
0
votes
0 answers
Cancel notification after a set amount of time or repetitions
I have a local notification set to repeat every 1 minute. If the user does not interact with any of the notifications after 2 hours (or 120 repetitions), I would like to stop delivering the notification.
PLEASE NOTE: I would like to do this without…

Jared
- 793
- 6
- 16