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

Objective-C: Set timer to display a reminder using UNUserNotificationCenter

I wish to display a custom reminder or a pop up message either at the foreground or at the background of the app when it is time. I have tried this link but doesn't seems to work. Nothing happened when I launch my app. It will say Local…
0
votes
1 answer

Can I use iOS local notifications if app is not running (like Clock app)?

I'd like to use iOS local UNNotifications even if my app is not running. The same way we use Alarm in Clock app. We can setup Alarm, then quit our Clock app but... sound and notification will run on time. I need the same type of behaviour. Is it…
0
votes
1 answer

Weird crash when adding new instance in NSMutablearray

EDIT: iOS Version: iOS 10 I am puzzled with following crash report from crashlytics: CoreFoundation 0x142ea9823 CFStringConvertNSStringEncodingToEncoding + 806 MyApp 0x100d3625c -[MyClass myMethod:]…
UPT
  • 1,490
  • 9
  • 25
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
0
votes
1 answer

Get User's Notification settings

Overview I want to let users turn off notification sounds. Usually in order to do so, one has to open the app settings(from Settings app as shown in the picture) and turn off notification sounds there. Aim I would like to display the value of…
0
votes
3 answers

Clearing a single notification in iOS 11.2 clears them all

Since iOS 11.2, clearing a single notification from my app seems to clear them all. I can't seem to figure out what's happening as no code was changed. My UNNotificationRequest are created with GUUIDs to be universally unique (since my app allows…
0
votes
2 answers

All delivered Scheduled Notifications are cleared from Notification Center when one is tapped

I scheduled multiple Local Notification for the user. All of them are also delivered on their specified time. However, when I try to open any one of them from Notification Center, all of them are getting cleared. In a rightful scenario, I don't…
0
votes
1 answer

Insert text in other apps automatically - swift4

I have a simple application, which can send user UNNotification periodically. I want to insert/paste some strings into the application which is behind of the notification. For example, if the user is on the Note application on his iPhone, when he…
0
votes
1 answer

Can there be more than one outstanding UNNotificationRequest?

My app schedules multiple UNNotificationRequest for future times. Each request has a unique identifier. This is not the case of having a repeat on a UNCalanderNotificationTrigger, since repeat is set to NO. Rather, each request is set for a…
Nelson Capes
  • 411
  • 3
  • 12
0
votes
1 answer

How to get UNNotificationSound to use the .caf files I have in a blue folder in my project

I'm creating a UNNotificationRequest with a UNNotificationSound as: content.sound = UNNotificationSound(named: "alarmSounds/alarmAscending.caf") The sound is in the folder (blue) alarmSounds in the main project folder. The sound used is always the…
zkon
  • 568
  • 1
  • 6
  • 19
0
votes
1 answer

Retrieve notification type from userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:

Is there any way to retrieve what type (local or remote) notification fired userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler: ? I'm working on some kind of internal analytics module for my apps. In the each app I need to…
somedev
  • 791
  • 11
  • 29
0
votes
1 answer

Daily local notification on iOS

I need to make a local notification that alert the user daily at 19:30. Here is what i did: var dateComponents = DateComponents() dateComponents.hour = 19 dateComponents.minute = 30 let trigger =…
user6539552
  • 1,331
  • 2
  • 19
  • 39
0
votes
0 answers

how to call a method by notification with out any click of user on notification

I want to call my method on particular time (like 5:00 pm , 6:00 pm etc). In my app user enter a time suppose he enters 6:00 pm and I am scheduling internally local notification at 5:00 pm. and at 5:00 pm my notification occurs but I want that user…
0
votes
0 answers

Daily Local Push Notifications skip the first notification (ObjC)

I using below code for LocalNotification for every day. NSDate * datetime = reminder.fireTime; NSCalendar *cal = [NSCalendar currentCalendar]; NSDateComponents *components = [cal components:(NSCalendarUnitHour | NSCalendarUnitMinute |…
0
votes
1 answer

Unique Identifier for scheduling notifications, Swift 3 iOS 10

I am scheduling notifications with Unique Identifiers so I don't have to make a new String for each notification. This all works well for scheduling but the problem lies in trying to cancel them. This is my code for scheduling notifications... let…
Tai
  • 25
  • 1
  • 6