usernotifications Questions

1

Say today is a Monday and it's 1 PM. I want to schedule a weekly local notification from my iOS app starting today at 2 PM. I'd do this: NSDateComponents *components = [[[NSDateComponents alloc]in...
Anhydrous asked 3/1, 2017 at 18:7

14

Solved

I am developing an iPhone alarm app based on local notifications. On deleting an alarm, the related local notification should get cancelled. But how can I determine exactly which object from the a...
Inflammable asked 14/6, 2011 at 7:57

3

I'm receiving this error only when trying to register for remote notifications using UserNotifications framework. When using PushKit everything works ok. dispatch_queue_t mainQueue = dispatch_get_...

5

Solved

I have a iphone app which is enable to receive push notifications. Currently i can disable push notifications for my app by going to the iphone settings/Notifications. But i want to add a switch o...

1

What is the right way to play a tone associated with notification in iOS 15 without displaying banner or list? When handling notifications in foreground, both local and push, notification sounds ar...
Univalent asked 2/9, 2021 at 3:39

4

Solved

So the following code is being used to attach an image from local storage url of an image. I check in Terminal to see if the image is stored and it does store the image without any issues. So rulin...

1

Solved

I'm making an alarm clock app, and I have confirmed that my alarm notifications are being triggered correctly, but the sound does not always play as I expect. For instance, when the phone is not in...

1

When creating the XCode project, I selected Apple Watch Application and enabled "Include Notification". This lead me to have a NotificationView.swift and a NotificationController.swift in my projec...
Lozenge asked 6/2, 2020 at 12:28

1

Solved

From Apple Doc example on https://developer.apple.com/documentation/usernotifications/registering_your_app_with_apns UIApplication.shared.registerForRemoteNotifications() is called all the time w...
Aulos asked 17/6, 2019 at 9:52

2

Solved

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 ...
Embellish asked 12/3, 2017 at 2:6

3

Solved

In my app, I want to be able to check if the user has notifications enabled or not. In iOS 10, I did this using a check in the delegate. This check is now deprecated and I want to update it, but I...
Lelea asked 10/10, 2017 at 10:13

2

Solved

I'm working on an app where I need to send a good amount of notifications to the user daily. Around 5-40 depending on the user. I'm using local notifications to send it, but I know there is a 64 n...
Felid asked 16/11, 2017 at 0:13

2

Solved

I am using UserNotification framework in my app and sending local notifications (not push notifications), and I want to set the badge to the number of notifications received so what I did was to se...
Killie asked 14/9, 2018 at 1:7

3

How to handle new iOS10 Notification Action when app is closed (not in background) ? when app is minimalized everything works fine with: UNUserNotificationCenter.current().delegate = x and hand...

1

Solved

I am currently migrating an app to the new UserNotifications framework. I'm stuck at detecting if the app was launched due to the user opening a local notification. The test case is: Schedule a l...

3

I have integrated APNS and want to display image in remote notification like below; I have used below code with reference link; AppDelegate.h #import <UserNotifications/UserNotifications.h...

2

Solved

In one of the WWDC sessions I got code snippet for updating existing notifications. I don't think it works. Trying to update notification content. First I request pending notifications from UNUser...
Goshawk asked 11/7, 2017 at 11:56

1

I am trying to figure out whether I can accomplish my goal through Local Notifications, or whether I need to switch to Remote Notifications. I'm practicing iOS 10 / Swift 3 by building an alarm p...

3

Solved

I'm using UNUserNotificationCenter for ios 10. For testing, I'm setting a local notification for 10 seconds from current time. This is what I tried, - (void)viewDidLoad { [super viewDidLoad]; U...

2

Solved

I'm working on local notification scheduling module for iOS 10 which repeats local notification for example every Sunday or every Monday..etc. Lets say i scheduled a notification for this date whic...
Neelon asked 26/12, 2016 at 11:10

1

I am scheduling local notifications. It works in iOS 9.x but since iOS 10 -(void)application:(UIApplication *)application didReceiveLocalNotification:(UILocalNotification *)notification doesn't ...
Crabbe asked 2/9, 2016 at 21:20

2

Solved

I'm setting multiple UNUsernotifications as below, - (void)viewDidLoad { [super viewDidLoad]; notifCount = 0; UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCen...

2

Solved

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...
Bursa asked 25/1, 2017 at 7:16

2

Solved

I'm scheduling a daily UserNorification to trigger everyday at a specific time, notifying the user to do something. But if the user does that X hours before the notification is fired, I need to can...
Farinaceous asked 17/12, 2016 at 19:10

2

Solved

How can I open my app, when user receive notification and my app was in background? Of course tap on notification itself would open app, but how to handle it with custom notification action? I hav...

© 2022 - 2024 — McMap. All rights reserved.