Relative Content

Tag Archive for swiftswiftuiwatchos

I’m making a “smart alarm” on watchOs, how to allow a force closed app to still relaunch using ExtendedRuntimeSession?

I’m making a smart alarm for watchOS and I have it mostly functional however if the user was to set the alarm and then force close the app then my alarm fails to play at the scheduled time and instead of the alarm it’s just a notification “Alarm app has been running in the background but failed to play a scheduled alarm. Would you like to disable the app’s ability to run background tasks in future?”. If the app is not force closed then the alarm will play wether the user has the app in the foreground or not.