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
0
votes
1 answer

Notification Service extension doesn't run on app install

I have successfully implemented push notifications for my app. I have also activated Notification service extension to suit my needs. The problem arises when I uninstall the app and run the app from Xcode again the service extension doesn't work. It…
0
votes
3 answers

Only last added notification gets triggered

I'm updating notification to the UNUserNotification framework for my alarm-like app, and I thought I succeeded, but I realized that when I set more than one alarm I only get notified the latest one. Repeating days are working the dough. Could it be…
Vincenzo
  • 5,304
  • 5
  • 38
  • 96
0
votes
1 answer

How to run a notification on a specific day of the week, but every other week (Swift + Xcode)?

Basically, I need an app that runs a notification every other Monday. What I have is an app that runs a notification every Monday. Is there a way to set it up so that when the first notification is received the app will begin a two week time…
0
votes
1 answer

How to schedule a notification that will repeat with some frequency after specific time passes

I don't see support for scheduling such kind of notification i.e. that repeats only when a specific time passes. The problem is that the schedule fires immediately without waiting for the exact time although repeats correctly. e.g. here is the code…
0
votes
1 answer

Local Notifications limit for Calendar app

Im building a Calendar app, where you can schedule events, and you get Notified by UserNotification. The Problem is that i recently read that you can only have 64 scheduled events. But what if the user has more than 64 events? I know repeated…
Elliot Czigány
  • 188
  • 1
  • 14
0
votes
1 answer

Why won't my action buttons appear on my notification?

I am testing my code to see how UserNotifications works, and I have this code that should show three buttons, and it shows the notification but it doesn't show any of the buttons. What am I doing wrong? I followed the instructions at…
daniel
  • 1,446
  • 3
  • 29
  • 65
0
votes
1 answer

Send Multiple Notifications at Multiple Times (Swift)

I have a time picker and a textfield where user enter the time and title and I want to send a local notification at the time the user selected. My code work to send one notification but if I add another notification it overrides the first one and…
0
votes
1 answer

UNNotificationCenterDelegate not called when dismissing

I have an AppleWatch App, which receives remote Notifications. I get a callback on my notificationCenter(_:didRecieve response:...) when handling my custom action "a1" and the default action. However, this func isn't called for the custom dismiss…
Sam
  • 819
  • 2
  • 7
  • 17
0
votes
1 answer

Swift 4 - How to pass device token and send it to sql in the parameter

Hello I have an issue passing the device_token to my parameter swift 4 Xcode 9.2 ViewController override func viewDidLoad() { print("inside viewDidLoad ") super.viewDidLoad() let appDelegate = UIApplication.shared.delegate as!…
0
votes
1 answer

Is it possible to vibrate only on Push Notifications in iOS?

I know how to use vibrate in in the foreground. I want to know how to use it in the background... I searched a lot in stackoverflow but I didn't find the right answer, only an answer from 2011, where you use a silent soundfile (vibrate in push…
Klemens159
  • 171
  • 1
  • 11
0
votes
1 answer

swift userNotification clicking

How can I handle when notification is clicked? adding action means adding new button to notification, I don't want to add a button; I want to go to special view controller when notification is selected like builder.setContentIntent in android. I…
Nadia
  • 117
  • 1
  • 13
0
votes
2 answers

LocalNotification alert interference

I have enabled UserNotifications in my app and it all works great, apart from a bug in the very beginning (First install). Local Notification requires to ask user for permission to send notifications and it comes as an alert on first install, where…
0
votes
1 answer

UNUserNotificationCenterDelegate didReceive response for Local Notifications not called when app is not running

I am trying to use the new UserNotifications framework for local notifications. I redirect the user to a different viewcontroller when the notification is clicked/open. The notification is not handled properly by UNUserNotificationCenterDelegate…
cauende
  • 135
  • 1
  • 11
0
votes
1 answer

How to apply custom font/color and semi-transparent background for my custom view in notification content extension?

I implemented Notification content extension for customizing my push notification alert. I got the alert like the following image. But I would like to apply following things to my custom view 1: How to make blurred/semi-transparent background for…
IKKA
  • 6,297
  • 7
  • 50
  • 88
0
votes
1 answer

Local Notification in swift 3 repeat interval selected by users

I'm trying to write some code which will allows users to set custom local notifications to remind them some tasks. I'm using the user notification framework. So basically a user can decide to set a notification which will remind him to buy some soap…