1. Settings → Advanced Settings → Apps → Auto-Start → Zegoal → On
2. You can pin the app to your smartphone's RAM to prevent it from closing when the screen is locked:
Open Zegoal → Swipe down from the top of the screen → Drag the Zegoal icon down → Click on the padlock to lock it
3. Settings → Battery → High Power Consumption → Zegoal → On