WatchOS Background Task Without WKExtendedRuntimeSession

Hi folks! I'm currently building a app that notifies users via haptics (when users are asleep) when detector detects unusual activities (ex. gas detector). I've searched for relevant APIs to keep the watchOS app running in background and I found WKExtendedRuntimeSession might be the only choice for me. However, the maximum time limit is only 30 minutes, which is not cool for keeping it running all the time. Is there any workarounds for this question? If I use location service to keep it alive, would my app be rejected by Apple? Thanks in advance!

Answered by Frameworks Engineer in 678703022

WKExtendedRuntime sessions are intended for specific use cases—Self Care, Mindfulness, Physical Therapy, and Smart Alarms. Each use case has a time limit, and only Physical Therapy and Smart Alarms are background running. The use case you have in mind is not currently supported. Please file Feedback if you have a use case you think should be supported by this API.

Accepted Answer

WKExtendedRuntime sessions are intended for specific use cases—Self Care, Mindfulness, Physical Therapy, and Smart Alarms. Each use case has a time limit, and only Physical Therapy and Smart Alarms are background running. The use case you have in mind is not currently supported. Please file Feedback if you have a use case you think should be supported by this API.

WKExtendedRuntime sessions are intended for specific use cases—Self Care, Mindfulness, Physical Therapy, and Smart Alarms. Each use case has a time limit, and only Physical Therapy and Smart Alarms are background running. The use case you have in mind is not currently supported. Please file Feedback if you have a use case you think should be supported by this API.

Thanks!

WatchOS Background Task Without WKExtendedRuntimeSession
 
 
Q