Location sensor does not work again if it is turned on after being turned off

use background,check this : ItoO - Background Tasks [special] 🥳
or this Open Source • Background Tasks: Itoo 🚀 - Extensions - MIT App Inventor Community