0

I am working on app in which I want to schedule an alarm like in Android Alarm service.

I know there is UIBGTaskScheduler in iOS 13 but I am unable to identify if this can work when app is killed?

I have searched a lot but couldn’t find about the process when app is killed.

I have seen lots of examples are there as well but couldn’t find the answer I was looking for.

Can anyone help me with that?

Thanks in advance.

Manthan
  • 3,856
  • 1
  • 27
  • 58
  • You could use `BGAppRefreshTask ` .,which is a special type of Background Task which we can use for app data update. One thing that makes this task type very special is the user behavior. iOS learns how often and at what time the user is running your app and tries to run BGAppRefreshTask at a time when the user is not likely to be using the app. – Lucas Zhang May 18 '20 at 12:08
  • Thanks for the reply but will that work even when the app is killed? – Manthan May 19 '20 at 05:05
  • Background Task only support like media player . In your case , it will be better to use local notification . – Lucas Zhang May 19 '20 at 07:18

0 Answers0