Keep self developed application running in background

Is that true, our self developed iOS app cant run in background? I would like to develop a smart alarm clock (in swift ui or kit), which wakes you up at the optimal time based on pulse and movement data extracted from the Apple Watch. Is that feasible or not?

Keep self developed application running in background
 
 
Q