Skip to main content
The 2024 Developer Survey results are live! See the results

All 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. ...
Manish Kumar's user avatar
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 ...
AMIT's user avatar
  • 924
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. ...
cmt0220's user avatar
  • 127
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 <...
cmt0220's user avatar
  • 127
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 ...
cmt0220's user avatar
  • 127
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 ...
user6026720's user avatar
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 ...
hitechnet's user avatar
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 ...
childrenOurFuture's user avatar
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....
Codetard's user avatar
  • 2,545
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'...
Rahul Vyas's user avatar
  • 28.6k
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 ...
iOS Developer's user avatar
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 ...
uncleWang's user avatar
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 ...
Jay-tee's user avatar
  • 15
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 ...
Sazzad Hissain Khan's user avatar
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 ...
Nimesh Chandramaniya's user avatar

15 30 50 per page
1
2 3 4 5
39