Send local notifications after the application has been interrupted

I am making an application in iOS where it will send local timer notifications. It works fine when the application is in the background, but does not work when it is fully completed and completely closed.

Do I still need to send local notifications when this happened?

Thanks in advance.

+8
ios objective-c xcode swift
source share
3 answers

Perhaps if you are planning a local notification, it will work even if you stop the application.

UILocalNotification *_localNotification = [[UILocalNotification alloc] init]; _localNotification.fireDate = [NSDate dateWithTimeIntervalSinceNow:_value]; _localNotification.timeZone = [NSTimeZone defaultTimeZone]; _localNotification.alertBody = @"Beep... Beep... Beep..."; _localNotification.soundName = UILocalNotificationDefaultSoundName; [[UIApplication sharedApplication]scheduleLocalNotification:_localNotification]; 

... works like a charm to me.

+7
source share

Local notification can be delivered when the application is completed or closed, but they must be scheduled when the application is launched. You can set fireDate to be notified in the future, schedule it, and it will be delivered regardless of whether the application is running.

+4
source share

No, It is Immpossible.

For more information, visit Local Application Completion Notification

Hope this helps.

-one
source share

All Articles