To turn off battery optimization on your microG, open the Settings app and go to Battery > Battery Optimization. Select the All Apps tab and then select microG from the list. Tap the drop-down menu and select Don’t Optimize.