All Questions
Tagged with objective-c notifications
572
questions
0
votes
0
answers
17
views
Getting unnecessary log while adding NotificationService Extension in IOS
I am using react native for an app.Just added NotificationService Extension for rich notifications and trying building my project
Getting these unnecessary log in console when hit to run on simulator.
...
1
vote
1
answer
122
views
How can I send an iOS local push to a specific date and schedule it weekday for a particular time?
I want to add and send an iOS local push notification to a specific date and want to schedule it by weekday for a specific time (hour, minute). I wanted to send this reminder weekday-wise but want to ...
4
votes
1
answer
1k
views
Using the New UNUserNotification API in a Standalone Objective-C Program
I'm trying to throw notifications from a standalone Objective-C file. The NSUserNotification API will be deprecated after OSX 11, so I'm looking to switch to the newer UNUserNotification interface.
...
1
vote
0
answers
625
views
MacOS notifications hidden in notification center when app is focused
I'm writing standalone Objective-C code to display notifications on MacOS. Here's what I have so far.
The main logic is in notify.m:
#import <stdio.h>
#import <Cocoa/Cocoa.h>
#import <...
2
votes
1
answer
666
views
Throwing a MacOS notification from a minimal standalone Objective-C program?
I'm trying to implement push notifications on MacOS within a C codebase. Ideally, there'd just be one Objective-C file containing (1) a public C function I can call and (2) some Objective-C code I can ...
1
vote
1
answer
82
views
Is there a way to keep a notification on the screen from a backgrounded iOS app, similar to Apple's Timer app?
There has been a lot written about how an app other than one using locations or playing music, for example, will be terminated after 30 seconds if it's in the background. The Apple Timer app isn't ...
0
votes
0
answers
274
views
Custom Sound for macosx notification
I'm working on project that needs to create a notification in macosx(11.3, Big Sur) with a custom sound.
I have referenced apple official documents and found an obj-c code that should work which is ...
1
vote
2
answers
178
views
iOS when receive a remote notification can we know it and do something?
There is several situations when receiving a remote notification:
app is not launched at all
app is foreground
app is background
what I am looking for is that user haven't click the notification to ...
0
votes
0
answers
59
views
Calendar Component for n months Interval Swift
I'm trying to create a UNNotificationRequest using UNCalendarNotificationTrigger for a quarter(every 3 months) year interval.
I've been able to create a monthly trigger
let component = Calendar....
0
votes
1
answer
65
views
How to prevent notitifcation observer from being called after UIViewController is popped?
I have 2 UIViewController A and B. From A I pushed B and B has 2 observers for reachability. Now when I pop B and comes to A after this if Network goes off then the method written in VC B is called. I'...
0
votes
1
answer
195
views
Local Notification not triggering after changing device time in iOS
I have local notification setup in one of my application which remind the user regarding medication on a regular basis and n times daily depends on user selection. If the user setup the reminder in ...
0
votes
0
answers
29
views
iOS notifications “UIApplicationSignificantTimeChangeNotification” also trigger this type of notification when the device is charging
I needed to use this notification to complete the data refresh, but my iPhone test found that it also triggered the notification when connecting to the charger (or to the computer), causing it to fail ...
1
vote
1
answer
387
views
After IORegisterForSystemPower failing to call IODeregisterForSystemPower
I have an application, written in Objective-C for MacOS 10.10+ which registers for sleep/wake notifications (code sample below, but the code isn't the question). What I am wondering is, if I call ...
1
vote
1
answer
598
views
UIApplicationProtectedDataWillBecomeUnavailable notification VS applicationProtectedDataWillBecomeUnavailable delegate
There are two ways to get notified when protected data becomes unavailable.
applicationProtectedDataWillBecomeUnavailable delegate
UIApplicationProtectedDataWillBecomeUnavailable notification
Are ...
3
votes
2
answers
2k
views
How to detect app force quit event in iOS
I am working on an iOS app for which I need to show a local notification when users force quit the application.
I tried to use the "applicationWillTerminate" iOS callback but it doesn't work when the ...