I have a question about swift push alarm.

Asked 2 years ago, Updated 2 years ago, 29 views

I have a question, so I posted a question.

I'm working on the code using UNUser Notification Center so that the local push alarm can come at the set time, but I've registered the alarm when the status goes from AppDelegate to the background. After doing this, I checked that the alarm comes properly when the app is turned off or left on the home screen, but the problem is that the alarm does not come when the app is turned on.

I heard that the push alarm doesn't come when the app is turned on on on iPhone, but when I see the message alarm continuously coming while chatting on Kakao Talk, it doesn't seem like it.

What should I do if I want to receive a local notification even when the app is turned on?

ios swift

2022-09-22 16:45

1 Answers

ios 10 or higher

See UNUserNotificationCenterDelegate

This method is invoked when a push is delivered to the foreground application.

You've used UNUserNotificationCenter so you'll understand if you look at the reference.


2022-09-22 16:45

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.