How do I implement some functions in my App to make it work when the screen is locked?

Ok, I´ll try with Background Tasks extension [3.8 A]